41 lines
732 B
Protocol Buffer
41 lines
732 B
Protocol Buffer
syntax = "proto3";
|
||
|
||
option java_package = "club.joylink.xiannccda.dto.protos";
|
||
option java_outer_classname = "DeviceProto";
|
||
message Device{
|
||
int32 lineId = 1;
|
||
int32 reportId = 2;
|
||
|
||
}
|
||
|
||
message DeviceDetail{
|
||
string deviceType = 1;
|
||
string deviceName = 2;
|
||
// int32 status = 3;
|
||
|
||
}
|
||
message Track{
|
||
Device device = 1;
|
||
DeviceDetail detail = 2;
|
||
//限速
|
||
float speedLimit = 3;
|
||
//限速类型
|
||
// 为1时,CBTC限速;
|
||
// 为2时,联锁限速;
|
||
// 为4时,同时限速。
|
||
int32 limitType = 4;
|
||
}
|
||
|
||
message Platform{
|
||
Device device = 1;
|
||
DeviceDetail detail = 2;
|
||
//停站时间
|
||
int32 stopTime = 3;
|
||
}
|
||
|
||
message Switch{
|
||
Device device = 1;
|
||
DeviceDetail detail = 2;
|
||
//限速
|
||
float speedLimit = 3;
|
||
} |