signal 故障

This commit is contained in:
xzb 2023-10-19 14:15:01 +08:00
parent fa48e1cd4f
commit d7435063ab

View File

@ -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时有效
}