45 lines
1.1 KiB
Protocol Buffer
45 lines
1.1 KiB
Protocol Buffer
|
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; //此分组中包含的任务的ID(子分组中的任务ID不算)
|
|||
|
repeated Group group = 2;//此分组的子分组
|
|||
|
string name = 3; //分组名称
|
|||
|
}
|
|||
|
}
|