rts-sim-testing-message/protos/relayCabinetLayoutGraphics.proto
joylink_zhaoerwei 90cdd389e5 uniqueId配置
2023-09-20 15:31:56 +08:00

45 lines
1.2 KiB
Protocol Buffer

syntax = "proto3";
import "stationLayoutGraphics.proto";
package relayCabinetGraphicData;
option go_package = "./ats/verify/protos/graphicData";
message RelayCabinetGraphicStorage {
graphicData.Canvas canvas = 1;
repeated RelayCabinet relayCabinets = 2;
repeated Relay relays = 3;
repeated DeviceRelateRelay deviceRelateRelayList = 4;
//string belongsConcentrationStation = 5;//继电器柜图所属集中站
UniqueIdType UniqueIdPrefix = 6;//设备唯一编码--前缀
}
message RelayCabinet {
graphicData.CommonInfo common = 1;
string code = 2;//编号
}
message Relay {
graphicData.CommonInfo common = 1;
string code = 2;//编号
string model = 3;//型号
}
/* 设备管理的继电器列表 */
message DeviceRelateRelay {
//int32 id = 1;//存储在列表中的id
string type = 2;//设备类型
string code = 3;//设备编号
//repeated string refRelay = 4;//设备关联的继电器
repeated Combinationtype combinationtypes = 5; //组合类型
}
message Combinationtype {
string code = 1;
repeated string refRelays = 2;//设备关联的继电器
}
message UniqueIdType {
string city = 1;//城市
string lineId = 2;//线路号
string belongsConcentrationStation = 3;//继电器柜图所属集中站
}