48 lines
761 B
Protocol Buffer
48 lines
761 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package state;
|
|
import "stationLayoutGraphics.proto";
|
|
option java_package = "club.joylink.xiannccda.dto.protos";
|
|
option java_outer_classname = "DeviceInfoProto";
|
|
|
|
// 区段
|
|
message Section {
|
|
uint32 id = 1;
|
|
|
|
// 区段编码
|
|
string code = 2;
|
|
|
|
// 关联区段
|
|
repeated uint32 childrenId = 3;
|
|
|
|
// 物理区段Id
|
|
uint32 physicalSectionId = 4;
|
|
|
|
// 目的地码
|
|
string destinationCode = 5;
|
|
|
|
// 公里标信息
|
|
DeviceKilometer kilometer = 6;
|
|
}
|
|
|
|
// 道岔
|
|
message Turnout {
|
|
|
|
uint32 id = 1;
|
|
|
|
string code = 2;
|
|
|
|
// 公里标信息
|
|
DeviceKilometer kilometer = 3;
|
|
}
|
|
|
|
// 公共属性
|
|
message DeviceKilometer {
|
|
|
|
int64 minKilometer = 1;
|
|
|
|
int64 maxKilometer = 2;
|
|
|
|
repeated graphicData.KilometerSystem kilometerSystem = 3;
|
|
}
|