rt-sim-training-message/proto/race/race_task.proto

87 lines
2.3 KiB
Protocol Buffer
Raw Permalink Normal View History

2024-02-05 14:05:44 +08:00
syntax = "proto3";
package race;
2024-02-18 15:09:02 +08:00
import "common/modify_info.proto";
2024-02-22 09:36:01 +08:00
//import "common/page_query.proto";
2024-02-18 15:09:02 +08:00
import "race/race_scene.proto";
2024-02-05 14:05:44 +08:00
option java_package = "club.joylink.rtss.vo.race";
message RaceTaskVO {
int64 id = 1;
string name = 2;
string desc = 3; //基础描述
string content = 4; //考核内容
string standards = 5; //评价标准
RaceSceneVO scene = 6; //场景
int64 parentId = 7; //父任务的ID
common.ModifyInfoVO modifyInfo = 8;
2024-02-18 15:09:02 +08:00
}
2024-02-22 09:36:01 +08:00
message RaceTaskDetailVO {
2024-02-18 15:09:02 +08:00
int64 id = 1;
string name = 2;
2024-02-22 09:36:01 +08:00
string desc = 3; //基础描述
string content = 4; //考核内容
string standards = 5; //评价标准
2024-02-23 11:50:44 +08:00
int64 scene_id = 6; //绑定的场景id
2024-02-26 13:35:39 +08:00
string sceneName = 7;
2024-02-23 11:49:14 +08:00
int64 rule_id = 8; //绑定的评分id
2024-02-26 13:35:39 +08:00
string ruleName = 9;
2024-02-23 11:49:14 +08:00
int64 parent_id = 10; //父任务的ID
common.ModifyInfoVO modify_info = 11;
2024-02-22 09:36:01 +08:00
}
message RaceTaskCreateVO{
string name = 1;
string desc = 2;
string content = 3;
string standards = 4;
2024-02-23 10:49:16 +08:00
int64 scene_id = 5;
int64 parent_id = 6;
2024-02-18 15:09:02 +08:00
}
message RaceTaskBind{
enum TaskBindType{
rule = 0;
scene = 1;
}
2024-02-23 11:04:37 +08:00
int64 bind_id = 2;
TaskBindType bind_type = 3;
2024-02-22 16:52:27 +08:00
int32 status = 4; //0=绑定 1=解绑
2024-02-22 13:31:50 +08:00
}
2024-02-18 15:09:02 +08:00
2024-02-28 13:47:48 +08:00
//试卷考试显示模块任务单独树形结构显示
2024-02-27 15:08:00 +08:00
message RacePaperModuleTask{
int32 custom_module_id = 1;
repeated PaperModuleGroup module_group = 2;
message PaperModuleGroup{
string group_name = 1;
repeated RaceTaskChildVO treeData = 2;
repeated PaperModuleGroup module_group = 3;
}
2024-02-27 09:00:24 +08:00
}
message RaceTaskChildVO {
int64 id = 1;
string name = 2;
string desc = 3; //基础描述
string content = 4; //考核内容
string standards = 5; //评价标准
int64 scene_id = 6; //绑定的场景id
2024-02-27 09:31:11 +08:00
// string sceneName = 7;
int64 rule_id = 7; //绑定的评分id
// string ruleName = 9;
int64 parent_id = 8; //父任务的ID
repeated RaceTaskChildVO children = 9; // 子任务
2024-02-28 13:47:48 +08:00
ChildNodeType node_type = 10;
2024-02-29 15:40:25 +08:00
RaceScene.Type sceneType = 11; //Local 场景;Link 可能是3D;
2024-02-28 13:47:48 +08:00
enum ChildNodeType{
MODULE_GROUP = 0;
TASK = 1;
}
2024-02-29 15:38:19 +08:00
2024-02-27 15:08:00 +08:00
}
2024-02-28 13:47:48 +08:00
//试卷考试显示模块任务单独树形结构显示通过RaceTaskChildVO的属性node_type 进行区分目前节点是什么类型
message RacePaperSingleModuleGroupTask{
int32 custom_module_id = 1;
repeated RaceTaskChildVO child = 2;
}