报警记录增加报警地点数据;AlertType和AlertLocation使用proto文件定义

This commit is contained in:
joylink_zhangsai 2023-07-26 09:56:53 +08:00
parent b3b9885e27
commit 7567e2953e
2 changed files with 40 additions and 16 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; package alert;
import "alertConst.proto";
// //
//import "LineNetTrainOffsetDiagram.proto"; //import "LineNetTrainOffsetDiagram.proto";
@ -29,21 +30,5 @@ message NccAlertInfoMessage {
bool mock = 9; bool mock = 9;
} }
enum AlertType {
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;
}
repeated Message messages = 1; repeated Message messages = 1;
} }