竞赛接口使用的proto文件 v0.1

This commit is contained in:
thesai 2024-02-05 14:05:44 +08:00
parent 073add20d7
commit 294c8f3a44
11 changed files with 225 additions and 59 deletions

View File

@ -0,0 +1,14 @@
syntax = "proto3";
package common;
option java_package = "club.joylink.rtss.vo.common";
//
message ModifyInfoVO {
int64 creatorId = 1;
string createTime = 2;
int64 updaterId = 3;
string updateTime = 4;
string creatorName = 5;
string updaterName = 6;
}

View File

@ -0,0 +1,10 @@
syntax = "proto3";
package common;
option java_package = "club.joylink.rtss.vo.common";
//
message PageQueryVO {
int32 page = 1;
int32 size = 2;
}

View File

@ -0,0 +1,45 @@
syntax = "proto3";
package race;
import "modify_info.proto";
import "page_query.proto";
import "race_paper.proto";
option java_package = "club.joylink.rtss.vo.race";
message RaceModuleVO {
int64 id = 1;
string name = 2; //
string code = 3;
string desc = 4;
RacePaperVO paper = 5;
TaskSetting taskSetting = 6;
int64 duration = 7; //min
common.ModifyInfoVO modifyInfo = 8;
}
message RaceModuleCreateVO {
string name = 1;
string code = 2;
string desc = 3;//
int64 paperId = 4;
}
message RaceModuleQueryVO {
common.PageQueryVO page = 1;
string name = 2;
string code = 3;
string desc = 4;
int64 paperId = 5;
}
//
message TaskSetting {
repeated int64 taskIds = 1; //ID
repeated Group group = 2; //
//
message Group{
repeated int64 taskIds = 1; //IDID不算
repeated Group group = 2;//
string name = 3; //
}
}

27
src/race/race_paper.proto Normal file
View File

@ -0,0 +1,27 @@
syntax = "proto3";
package race;
import "modify_info.proto";
import "page_query.proto";
import "race_season.proto";
option java_package = "club.joylink.rtss.vo.race";
message RacePaperVO {
int64 id = 1;
string name = 2;
string desc = 3;
RaceSeason season = 4;
common.ModifyInfoVO modifyInfo = 5;
}
message RacePaperCreateVO {
string name = 1;
string desc = 2; //
int64 seasonId = 3;
}
message RacePaperQueryVO {
common.PageQueryVO page = 1;
string name = 2;
}

43
src/race/race_scene.proto Normal file
View File

@ -0,0 +1,43 @@
syntax = "proto3";
package race;
import "modify_info.proto";
import "page_query.proto";
option java_package = "club.joylink.rtss.vo.race";
message RaceSceneVO {
int64 id = 1;
string name = 2;
RaceScene.Type type = 3;
Scene scene = 4;
common.ModifyInfoVO modifyInfo = 5;
}
message RaceSceneCreateVO {
string name = 1;
RaceScene.Type type = 2;
}
message RaceSceneQueryVO {
common.PageQueryVO page = 1;
string name = 2;
RaceScene.Type type = 3;
}
message Scene {
string url = 1;
StorageSimulation storageSimulation = 2;
}
//
message StorageSimulation {
}
message RaceScene {
enum Type {
Unknown = 0;
Local = 1;
Link = 2;
}
}

View File

@ -0,0 +1,34 @@
syntax = "proto3";
package race;
import "modify_info.proto";
import "page_query.proto";
option java_package = "club.joylink.rtss.vo.race";
message RaceScoringRuleVO {
int64 id = 1;
string name = 2;
Rule rule = 3;
common.ModifyInfoVO modifyInfo = 4;
}
message RaceScoringRuleCreateVO {
string name = 1;
Rule rule = 2; //
}
message RaceScoringRuleQueryVO {
common.PageQueryVO page = 1;
string name = 2;
}
message Rule {
repeated Unit units = 1;
//
message Unit {
string text = 1; //
uint32 sceneStepId = 2; //ID
uint32 score = 3; //
}
}

View File

@ -0,0 +1,35 @@
syntax = "proto3";
package race;
import "modify_info.proto";
import "page_query.proto";
option java_package = "club.joylink.rtss.vo.race";
message RaceSeasonVO {
int64 id = 1;
string code = 2;//
RaceSeason.Group group = 3;//
string term = 4;//
common.ModifyInfoVO modifyInfo = 5;
}
message RaceSeasonCreateVO {
string code = 1;
RaceSeason.Group group = 2;
string term = 3; //
}
message RaceSeasonQueryVO {
common.PageQueryVO page = 1;
string code = 2;
RaceSeason.Group group = 3;
string term = 4;
}
message RaceSeason{
enum Group {
Unknown = 0;
ZZ = 1; //
GZ = 2; //
}
}

17
src/race/race_task.proto Normal file
View File

@ -0,0 +1,17 @@
syntax = "proto3";
package race;
import "modify_info.proto";
import "race_scene.proto";
option java_package = "club.joylink.rtss.vo.race";
message RaceTaskVO {
int64 id = 1;
string name = 2;
string desc = 3; //
string content = 4; //
string standards = 5; //
RaceSceneVO scene = 6; //
int64 parentId = 7; //ID
common.ModifyInfoVO modifyInfo = 8;
}

View File

@ -1,17 +0,0 @@
syntax = "proto3";
package task;
message Scene {
string url = 1;
StorageSimulation storageSimulation = 2;
enum Type {
Unknown = 0;
Local = 1;
Link = 2;
}
}
message StorageSimulation {
}

View File

@ -1,13 +0,0 @@
syntax = "proto3";
package task;
message Rule {
repeated Unit units = 1;
}
//
message Unit {
string text = 1; //
uint32 sceneStepId = 2; //ID
uint32 score = 3; //
}

View File

@ -1,29 +0,0 @@
syntax = "proto3";
package task;
message TaskSetting {
// repeated RandomItem randoms = 1;
repeated TimeItem timeItems = 1;
repeated GroupItem groupItems = 2;
}
//
message RandomItem {
string name = 1; //
repeated uint64 taskIds = 2; //
uint32 number = 3; //
}
//
message TimeItem {
repeated uint64 taskIds = 1; //
repeated RandomItem randomItems = 2; //
uint32 time = 3; //
}
//
message GroupItem {
repeated uint64 taskIds = 1; //
string name = 2; //
}