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{
//
string id = 1;
//
SectionType type = 2;
//
//true-false-
bool occupied = 3;
//
bool axleFault = 4;
}
//
@ -49,6 +49,28 @@ message SwitchState{
bool dw = 4;
//
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{

View File

@ -5,54 +5,59 @@ 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; //
}
//
enum Operation {
Undefined = 0; //
DC = 1; //
CancelDC = 2; //
FC = 3; //
CancelFC = 4; //
SetSB = 5; //
CancelSB = 6; //
SetJC = 7; //
CancelJC = 8; //
ForceDw = 9; //
ForceFw = 10; //
CancelForce = 11; //
}
}
//
message TurnoutOperationReq {
string simulationId = 1; // 仿id
int32 mapId = 2; // id
string deviceId = 3; // id
Turnout.Operation operation = 4; //
string simulationId = 1; // 仿id
int32 mapId = 2; // id
string deviceId = 3; // id
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 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 Section{
//
enum AxleOperation{
Drst = 0;//
Pdrst = 1;//
TrainIn = 2;//
TrainOut = 3;//
}
}
message Section {
//
enum Operation {
SetDrst = 0;//
CancelDrst = 1;//
SetPdrst = 2;//
CancelPdrst = 3;//
SetFaultOcc = 4; //
CancelFaultOcc = 5; //
}
}