72 lines
1.6 KiB
Protocol Buffer
72 lines
1.6 KiB
Protocol Buffer
syntax = "proto3";
|
||
package race;
|
||
import "common/modify_info.proto";
|
||
//import "common/page_query.proto";
|
||
import "race/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;
|
||
int64 season_id = 5;
|
||
string season_name = 6;
|
||
// bool support_copy = 7;
|
||
|
||
common.ModifyInfoVO modify_info = 8;
|
||
RaceSeason.Group group = 9;
|
||
}
|
||
|
||
message RacePaperMenuVO{
|
||
repeated SeasonMenu menu = 1;
|
||
message SeasonMenu{
|
||
int64 season_id = 1;
|
||
string season_name = 2;
|
||
string detail_html_content = 3;
|
||
repeated PaperMenu papers = 4;
|
||
string season_code = 5;
|
||
}
|
||
message PaperMenu{
|
||
int64 id = 1;
|
||
string name = 2;
|
||
}
|
||
}
|
||
|
||
message RacePaperDetailVO{
|
||
int64 id = 1;
|
||
string name = 2;
|
||
string desc = 3;
|
||
RacePaperModuleVO module_vo = 4;
|
||
int64 season_id = 5;
|
||
string season_name = 6;;
|
||
bool support_copy = 7;
|
||
common.ModifyInfoVO modify_info = 8;
|
||
}
|
||
message RacePaperCreateVO {
|
||
string name = 1;
|
||
string desc = 2; //非必填
|
||
int64 season_id = 3;
|
||
// bool support_copy = 4;
|
||
}
|
||
//赛题模块
|
||
message RacePaperModuleVO{
|
||
|
||
repeated PaperModule modules = 1;
|
||
|
||
message PaperModule{
|
||
string module_name = 1;
|
||
int32 duration = 2;
|
||
repeated Group group = 3; //任务分组(此分组目前看仅为称呼)
|
||
int64 module_score_rule_id = 4;
|
||
int32 custom_module_id = 5;
|
||
}
|
||
//分组
|
||
message Group{
|
||
repeated int64 task_ids = 1; //此分组中包含的任务的ID(子分组中的任务ID不算)
|
||
repeated Group group = 2;//此分组的子分组
|
||
string name = 3; //分组名称
|
||
}
|
||
}
|