49 lines
800 B
Protocol Buffer
49 lines
800 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 {
|
|
string id = 1;
|
|
|
|
// 区段编码
|
|
string code = 2;
|
|
|
|
// 关联区段
|
|
repeated string childrenId = 3;
|
|
|
|
// 物理区段Id
|
|
string physicalSectionId = 4;
|
|
|
|
// 目的地码
|
|
string destinationCode = 5;
|
|
|
|
// 公里标信息
|
|
DeviceKilometer kilometer = 6;
|
|
//是否转辙轨
|
|
bool turning = 7;
|
|
}
|
|
|
|
// 道岔
|
|
message Turnout {
|
|
|
|
string id = 1;
|
|
|
|
string code = 2;
|
|
|
|
// 公里标信息
|
|
DeviceKilometer kilometer = 3;
|
|
}
|
|
|
|
// 公共属性
|
|
message DeviceKilometer {
|
|
|
|
int64 minKilometer = 1;
|
|
|
|
int64 maxKilometer = 2;
|
|
|
|
repeated graphicData.KilometerSystem kilometerSystem = 3;
|
|
} |