signal 故障
This commit is contained in:
parent
fa48e1cd4f
commit
d7435063ab
@ -1,5 +1,7 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
|
import "device_state.proto";
|
||||||
|
|
||||||
package request;
|
package request;
|
||||||
option go_package = "./dto/request_proto";
|
option go_package = "./dto/request_proto";
|
||||||
|
|
||||||
@ -26,3 +28,30 @@ message TurnoutOperationReq {
|
|||||||
string deviceId = 3; // 设备id
|
string deviceId = 3; // 设备id
|
||||||
Turnout.Operation operation = 4; // 道岔操作
|
Turnout.Operation operation = 4; // 道岔操作
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 信号机
|
||||||
|
message Signal{
|
||||||
|
//信号机操作
|
||||||
|
enum Operation{
|
||||||
|
Undefined = 0; // 未定义
|
||||||
|
Display = 1; //显示操作,如设置绿色、设置红黄色
|
||||||
|
LightHFaultDs = 2;//设置红灯断丝故障
|
||||||
|
LightUFaultDs = 3;//设置黄灯断丝故障
|
||||||
|
LightLFaultDs = 4;//设置绿灯断丝故障
|
||||||
|
LightAFaultDs = 5;//设置蓝灯断丝故障
|
||||||
|
LightBFaultDs = 6;//设置白灯断丝故障
|
||||||
|
LightHCancelDs = 7;//取消红灯断丝故障
|
||||||
|
LightUCancelDs = 8;//取消黄灯断丝故障
|
||||||
|
LightLCancelDs = 9;//取消绿灯断丝故障
|
||||||
|
LightACancelDs = 10;//取消蓝灯断丝故障
|
||||||
|
LightBCancelDs = 11;//取消白灯断丝故障
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 信号机操作请求
|
||||||
|
message SignalOperationReq {
|
||||||
|
string simulationId = 1; // 仿真id
|
||||||
|
int32 mapId = 2; // 图id
|
||||||
|
string deviceId = 3; // 设备id
|
||||||
|
Signal.Operation operation = 4; // 信号机操作
|
||||||
|
state.Signal.Aspect aspect = 5;// 当操作为Operation.Display时有效,表示显示的信号
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user