添加竞赛proto定义0.1版
This commit is contained in:
parent
a26a896bc9
commit
34d0e6d71b
|
@ -0,0 +1,13 @@
|
|||
syntax = "proto3";
|
||||
package task;
|
||||
|
||||
message Rule {
|
||||
repeated Unit units = 1;
|
||||
}
|
||||
|
||||
//最小评分单元
|
||||
message Unit {
|
||||
string text = 1; //文字描述
|
||||
uint32 sceneStepId = 2; //场景步骤ID
|
||||
uint32 score = 3; //扣分分值
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
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; //名称
|
||||
}
|
||||
|
Loading…
Reference in New Issue