29 lines
708 B
Protocol Buffer
29 lines
708 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package request;
|
|
option go_package = "./dto/request_proto";
|
|
|
|
// 道岔
|
|
message Turnout {
|
|
// 道岔操作
|
|
enum Operation {
|
|
Undefined = 0; // 未定义
|
|
DC = 1; // 定操
|
|
CancelDC = 2; // 取消定操
|
|
FC = 3; // 反操
|
|
CancelFC = 4; // 取消反操
|
|
SetSB = 5; // 设置失表故障
|
|
CancelSB = 6; // 取消失表故障
|
|
SetJC = 7; // 设置挤岔故障
|
|
CancelJC = 8; // 取消挤岔故障
|
|
}
|
|
}
|
|
|
|
// 道岔操作请求
|
|
message TurnoutOperationReq {
|
|
string simulationId = 1; // 仿真id
|
|
int32 mapId = 2; // 图id
|
|
string deviceId = 3; // 设备id
|
|
Turnout.Operation operation = 4; // 道岔操作
|
|
}
|