区段操作

This commit is contained in:
Yuan 2023-10-30 17:32:11 +08:00
parent 123622f28c
commit 596dd05920

View File

@ -5,54 +5,57 @@ option go_package = "./dto/request_proto";
// //
message Turnout { message Turnout {
// //
enum Operation { enum Operation {
Undefined = 0; // Undefined = 0; //
DC = 1; // DC = 1; //
CancelDC = 2; // CancelDC = 2; //
FC = 3; // FC = 3; //
CancelFC = 4; // CancelFC = 4; //
SetSB = 5; // SetSB = 5; //
CancelSB = 6; // CancelSB = 6; //
SetJC = 7; // SetJC = 7; //
CancelJC = 8; // CancelJC = 8; //
} }
} }
// //
message TurnoutOperationReq { message TurnoutOperationReq {
string simulationId = 1; // 仿id string simulationId = 1; // 仿id
int32 mapId = 2; // id int32 mapId = 2; // id
string deviceId = 3; // id string deviceId = 3; // id
Turnout.Operation operation = 4; // Turnout.Operation operation = 4; //
} }
// //
message Signal{ message Signal {
// //
enum Operation{ enum Operation {
Undefined = 0; // Undefined = 0; //
Display = 1; //,绿 Display = 1; //,绿
LightHFaultDs = 2;// LightHFaultDs = 2; //
LightUFaultDs = 3;// LightUFaultDs = 3; //
LightLFaultDs = 4;//绿 LightLFaultDs = 4; //绿
LightAFaultDs = 5;// LightAFaultDs = 5; //
LightBFaultDs = 6;// LightBFaultDs = 6; //
LightHCancelDs = 7;// LightHCancelDs = 7; //
LightUCancelDs = 8;// LightUCancelDs = 8; //
LightLCancelDs = 9;//绿 LightLCancelDs = 9; //绿
LightACancelDs = 10;// LightACancelDs = 10; //
LightBCancelDs = 11;// LightBCancelDs = 11; //
} }
} }
// //
message Section{ message Section {
// //
enum AxleOperation{ enum AxleOperation {
Drst = 0;// Drst = 0; //
Pdrst = 1;// Pdrst = 1; //
SetFaultOcc = 2;// }
CancelFaultOcc = 3;// //
} enum SectionOperation {
} SetFaultOcc = 0; //
CancelFaultOcc = 1; //
}
}