This commit is contained in:
weizhihong 2023-11-01 16:00:39 +08:00
commit ebfb67be9c
2 changed files with 70 additions and 43 deletions

View File

@ -30,11 +30,11 @@ message LinkState{
message SectionState{ message SectionState{
// //
string id = 1; string id = 1;
//
SectionType type = 2;
// //
//true-false- //true-false-
bool occupied = 3; bool occupied = 3;
//
bool axleFault = 4;
} }
// //
@ -49,6 +49,28 @@ message SwitchState{
bool dw = 4; bool dw = 4;
// //
bool fw = 5; bool fw = 5;
// ()
bool force = 6;
//
bool sb = 7;
//
bool dwsb = 8;
//
bool fwsb = 9;
//
bool jc = 10;
//
bool qdc = 11;
//
bool qfc = 12;
//
bool qyc = 13;
//
bool dc = 14;
//
bool fc = 15;
//
bool yc = 16;
} }
// //
message SignalState{ message SignalState{

View File

@ -5,54 +5,59 @@ 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; //
} ForceDw = 9; //
ForceFw = 10; //
CancelForce = 11; //
}
} }
// //
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 Operation {
Drst = 0;// SetDrst = 0;//
Pdrst = 1;// CancelDrst = 1;//
TrainIn = 2;// SetPdrst = 2;//
TrainOut = 3;// CancelPdrst = 3;//
} SetFaultOcc = 4; //
} CancelFaultOcc = 5; //
}
}