diff --git a/src/scoring_rule.proto b/src/scoring_rule.proto new file mode 100644 index 0000000..e79a212 --- /dev/null +++ b/src/scoring_rule.proto @@ -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; //扣分分值 +} \ No newline at end of file diff --git a/src/task_setting.proto b/src/task_setting.proto new file mode 100644 index 0000000..f8936c5 --- /dev/null +++ b/src/task_setting.proto @@ -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; //名称 +} +