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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,8 @@
syntax = "proto3"; syntax = "proto3";
package race; package race;
import "modify_info.proto"; import "common/modify_info.proto";
import "race_scene.proto"; import "common/page_query.proto";
import "race/race_scene.proto";
option java_package = "club.joylink.rtss.vo.race"; option java_package = "club.joylink.rtss.vo.race";
@ -15,3 +16,23 @@ message RaceTaskVO {
int64 parentId = 7; //ID int64 parentId = 7; //ID
common.ModifyInfoVO modifyInfo = 8; 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;
}