添加 protobuf

This commit is contained in:
tiger_zhou 2024-02-18 15:09:02 +08:00
parent 1111d29fd0
commit 174efa7254
6 changed files with 52 additions and 25 deletions

View File

@ -1,8 +1,8 @@
syntax = "proto3";
package race;
import "modify_info.proto";
import "page_query.proto";
import "race_paper.proto";
import "common/modify_info.proto";
import "common/page_query.proto";
import "race/race_paper.proto";
option java_package = "club.joylink.rtss.vo.race";
@ -18,10 +18,13 @@ message RaceModuleVO {
}
message RaceModuleCreateVO {
string name = 1;
string code = 2;
string desc = 3;//
int64 paperId = 4;
int64 id = 1;
string name = 2; //
string code = 3;
string desc = 4;
int64 paperId = 5;
TaskSetting taskSetting = 6;
int64 duration = 7; //min
}
message RaceModuleQueryVO {

View File

@ -1,8 +1,8 @@
syntax = "proto3";
package race;
import "modify_info.proto";
import "page_query.proto";
import "race_season.proto";
import "common/modify_info.proto";
import "common/page_query.proto";
import "race/race_season.proto";
option java_package = "club.joylink.rtss.vo.race";

View File

@ -1,7 +1,7 @@
syntax = "proto3";
package race;
import "modify_info.proto";
import "page_query.proto";
import "common/modify_info.proto";
import "common/page_query.proto";
option java_package = "club.joylink.rtss.vo.race";
@ -14,8 +14,9 @@ message RaceSceneVO {
}
message RaceSceneCreateVO {
string name = 1;
RaceScene.Type type = 2;
int64 id = 1;
string name = 2;
RaceScene.Type type = 3;
}
message RaceSceneQueryVO {

View File

@ -1,7 +1,7 @@
syntax = "proto3";
package race;
import "modify_info.proto";
import "page_query.proto";
import "common/modify_info.proto";
import "common/page_query.proto";
option java_package = "club.joylink.rtss.vo.race";
@ -13,8 +13,9 @@ message RaceScoringRuleVO {
}
message RaceScoringRuleCreateVO {
string name = 1;
Rule rule = 2; //
int64 id = 1;
string name = 2;
Rule rule = 3; //
}
message RaceScoringRuleQueryVO {

View File

@ -1,7 +1,7 @@
syntax = "proto3";
package race;
import "modify_info.proto";
import "page_query.proto";
import "common/modify_info.proto";
import "common/page_query.proto";
option java_package = "club.joylink.rtss.vo.race";
@ -14,9 +14,10 @@ message RaceSeasonVO {
}
message RaceSeasonCreateVO {
string code = 1;
RaceSeason.Group group = 2;
string term = 3; //
int64 id = 1;
string code = 2;
RaceSeason.Group group = 3;
string term = 4; //
}
message RaceSeasonQueryVO {

View File

@ -1,7 +1,8 @@
syntax = "proto3";
package race;
import "modify_info.proto";
import "race_scene.proto";
import "common/modify_info.proto";
import "common/page_query.proto";
import "race/race_scene.proto";
option java_package = "club.joylink.rtss.vo.race";
@ -14,4 +15,24 @@ message RaceTaskVO {
RaceSceneVO scene = 6; //
int64 parentId = 7; //ID
common.ModifyInfoVO modifyInfo = 8;
}
message RaceTaskCreateVO{
int64 id = 1;
string name = 2;
string desc = 3;
string content = 4;
int64 parentId = 5;
}
message RaceTaskBind{
enum TaskBindType{
rule = 0;
scene = 1;
}
int64 taskId = 1;
TaskBindType bindType = 2;
int32 status = 3; //0= 1=
}
message RaceTaskQuery{
common.PageQueryVO page = 1;
}