xian-ncc-da-message/protos/device_info.proto

48 lines
761 B
Protocol Buffer
Raw Normal View History

2023-06-27 10:48:04 +08:00
syntax = "proto3";
package state;
import "stationLayoutGraphics.proto";
option java_package = "club.joylink.xiannccda.dto.protos";
option java_outer_classname = "DeviceInfoProto";
// 区段
message Section {
2023-06-27 11:24:03 +08:00
string id = 1;
2023-06-27 10:48:04 +08:00
// 区段编码
2023-06-27 11:24:03 +08:00
string code = 2;
2023-06-27 10:48:04 +08:00
// 关联区段
2023-07-19 10:17:42 +08:00
repeated string childrenId = 3;
2023-06-29 16:53:48 +08:00
2023-07-19 10:49:30 +08:00
// 物理区段Id
2023-07-21 16:59:30 +08:00
string physicalSectionId = 4;
2023-07-20 17:39:03 +08:00
// 目的地码
2023-07-21 16:59:30 +08:00
string destinationCode = 5;
// 公里标信息
DeviceKilometer kilometer = 6;
2023-06-27 10:48:04 +08:00
}
// 道岔
2023-07-03 16:28:54 +08:00
message Turnout {
2023-06-27 10:48:04 +08:00
2023-06-27 11:24:03 +08:00
string id = 1;
string code = 2;
2023-06-27 10:48:04 +08:00
2023-07-21 16:59:30 +08:00
// 公里标信息
DeviceKilometer kilometer = 3;
2023-06-27 10:48:04 +08:00
}
2023-07-21 16:59:30 +08:00
// 公共属性
message DeviceKilometer {
int64 minKilometer = 1;
int64 maxKilometer = 2;
repeated graphicData.KilometerSystem kilometerSystem = 3;
2023-08-16 16:06:09 +08:00
}