rt-sim-training-message/proto/race/race_task.proto
2024-02-29 15:40:25 +08:00

87 lines
2.3 KiB
Protocol Buffer
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package race;
import "common/modify_info.proto";
//import "common/page_query.proto";
import "race/race_scene.proto";
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;
}
message RaceTaskDetailVO {
int64 id = 1;
string name = 2;
string desc = 3; //基础描述
string content = 4; //考核内容
string standards = 5; //评价标准
int64 scene_id = 6; //绑定的场景id
string sceneName = 7;
int64 rule_id = 8; //绑定的评分id
string ruleName = 9;
int64 parent_id = 10; //父任务的ID
common.ModifyInfoVO modify_info = 11;
}
message RaceTaskCreateVO{
string name = 1;
string desc = 2;
string content = 3;
string standards = 4;
int64 scene_id = 5;
int64 parent_id = 6;
}
message RaceTaskBind{
enum TaskBindType{
rule = 0;
scene = 1;
}
int64 bind_id = 2;
TaskBindType bind_type = 3;
int32 status = 4; //0=绑定 1=解绑
}
//试卷考试显示模块任务单独树形结构显示
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;
}
}
message RaceTaskChildVO {
int64 id = 1;
string name = 2;
string desc = 3; //基础描述
string content = 4; //考核内容
string standards = 5; //评价标准
int64 scene_id = 6; //绑定的场景id
// string sceneName = 7;
int64 rule_id = 7; //绑定的评分id
// string ruleName = 9;
int64 parent_id = 8; //父任务的ID
repeated RaceTaskChildVO children = 9; // 子任务
ChildNodeType node_type = 10;
RaceScene.Type sceneType = 11; //Local 场景;Link 可能是3D;
enum ChildNodeType{
MODULE_GROUP = 0;
TASK = 1;
}
}
//试卷考试显示模块任务单独树形结构显示通过RaceTaskChildVO的属性node_type 进行区分目前节点是什么类型
message RacePaperSingleModuleGroupTask{
int32 custom_module_id = 1;
repeated RaceTaskChildVO child = 2;
}