Merge branch 'master' of git.code.tencent.com:xian-ncc-da/xian-ncc-da-message

This commit is contained in:
Yuan 2023-07-26 13:06:40 +08:00
commit ec5889fd03
4 changed files with 68 additions and 23 deletions

39
protos/alertConst.proto Normal file
View File

@ -0,0 +1,39 @@
syntax = "proto3";
package alert;
//
//import "LineNetTrainOffsetDiagram.proto";
option java_package = "club.joylink.xiannccda.dto.protos";
option java_outer_classname = "AlertConstProto";
enum AlertLocation {
ALERT_LOCATION_UNKNOWN = 0;
//线
QX = 1;
//
YHZ_LSQ = 2;
//
HJM_LSQ = 3;
//
BCT_LSQ = 4;
//
BSQ_LSQ = 5;
}
enum AlertType {
ALERT_TYPE_UNKNOWN = 0;
//
BLUE_DISPLAY = 1;
//2
TRAIN_DELAY_2 = 2;
//10
TRAIN_DELAY_10 = 3;
//
PLATFORM_DOOR_WITHOUT_LOCKED_SIGNAL = 4;
//
PLATFORM_DOOR_CANNOT_OPEN = 5;
//
PLATFORM_DOOR_CANNOT_CLOSE = 6;
}

View File

@ -2,6 +2,7 @@ syntax = "proto3";
package alert;
import "alertConst.proto";
//
//import "LineNetTrainOffsetDiagram.proto";
@ -16,17 +17,18 @@ message NccAlertInfoMessage {
string alert_time = 3;
string info = 4;
int32 alert_tip_id = 4;
int32 alert_tip_id = 5;
int32 line_id = 5;
//
string device_info = 6;
string alert_object = 6;
//
string reason = 7;
AlertType alert_type = 7;
string locator_device_id = 8;
bool mock = 9;
}
repeated Message messages = 1;
}

View File

@ -15,17 +15,14 @@ message Section {
//
repeated string childrenId = 3;
//
repeated graphicData.KilometerSystem kilometerSystem = 4;
//
repeated int64 convertKilometer = 5;
// Id
string physicalSectionId = 6;
string physicalSectionId = 4;
//
string destinationCode = 7;
string destinationCode = 5;
//
DeviceKilometer kilometer = 6;
}
//
@ -35,10 +32,16 @@ message Turnout {
string code = 2;
//
repeated graphicData.KilometerSystem kilometerSystem = 3;
//
repeated int64 convertKilometer = 4;
//
DeviceKilometer kilometer = 3;
}
//
message DeviceKilometer {
int64 minKilometer = 1;
int64 maxKilometer = 2;
repeated graphicData.KilometerSystem kilometerSystem = 3;
}

View File

@ -105,8 +105,9 @@ message Platform {
string code = 2;
bool hasdoor = 3; //
string direction = 4; // --
string upAndDown =5; //--upLink表示上行downLink表示下行
//string upAndDown =5; //--upLink表示上行downLink表示下行
string refStation=6; //
bool up = 7;//--true表示上行false表示下行
}
message Station {