98 lines
2.6 KiB
Protocol Buffer
98 lines
2.6 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;//设备唯一编码--前缀
|
||
repeated PhaseFailureProtector phaseFailureProtectors = 7;
|
||
repeated Combinationtype combinationtypeList = 8;
|
||
repeated SignalFaultAlarm signalFaultAlarms = 9;
|
||
CiCj ciCjList = 10;//采集列表
|
||
}
|
||
|
||
message RelayCabinet {
|
||
graphicData.CommonInfo common = 1;
|
||
string code = 2;//编号
|
||
}
|
||
|
||
message Relay {
|
||
enum ModelType {//型号中的-和/转换为_
|
||
Unknown = 0;
|
||
JPXC_1000 = 1;
|
||
JPXC_1700 = 2;
|
||
JWJXC_480 = 3;
|
||
JWJXC_H125_80 = 4;
|
||
JWXC_1700 = 5;
|
||
JWXC_H340 = 6;
|
||
JYJXC_160_260 = 7;
|
||
JZXC_H18 = 8;
|
||
}
|
||
graphicData.CommonInfo common = 1;
|
||
string code = 2;//编号
|
||
//string model = 3;//型号
|
||
ModelType newModel = 4;//型号
|
||
}
|
||
|
||
/* 断相保护器 */
|
||
message PhaseFailureProtector {
|
||
graphicData.CommonInfo common = 1;
|
||
string code = 2;//编号
|
||
}
|
||
|
||
/* 信号机故障报警仪 */
|
||
message SignalFaultAlarm {
|
||
graphicData.CommonInfo common = 1;
|
||
string code = 2;//编号
|
||
}
|
||
|
||
/* 设备管理的继电器列表 */
|
||
message DeviceRelateRelay {
|
||
//int32 id = 1;//存储在列表中的id
|
||
//string type = 2;//设备类型
|
||
string code = 3;//设备编号
|
||
//repeated string refRelay = 4;//设备关联的继电器
|
||
repeated Combinationtype combinationtypes = 5; //组合类型
|
||
graphicData.RelatedRef.DeviceType deviceType = 6;//设备类型
|
||
}
|
||
message Combinationtype {
|
||
string code = 1;
|
||
repeated string refRelays = 2;//设备关联的继电器
|
||
}
|
||
|
||
message UniqueIdType {
|
||
string city = 1;//城市
|
||
string lineId = 2;//线路号
|
||
string belongsConcentrationStation = 3;//继电器柜图所属集中站
|
||
}
|
||
|
||
/* 采集 */
|
||
message CiCj {
|
||
int32 dsCount = 1;//数据集位数——对应着excel表行数
|
||
repeated CjDataSet cjList = 2;//采集列表(二维数据,数组长度对应着excel表列数--数据集个数)
|
||
}
|
||
|
||
message CjDataSet {
|
||
string name = 1;//对应着excel中的列名,如'D1'
|
||
repeated CjData bitList = 2;//对应着excel中的一列的数据
|
||
}
|
||
|
||
message CjData {
|
||
repeated CjDataItem refRelays=1;//采集的继电器
|
||
}
|
||
|
||
message CjDataItem {
|
||
enum PostionType {
|
||
Q=0;
|
||
H=1;
|
||
}
|
||
string relayId = 1;//采集对应的继电器Id
|
||
PostionType position = 2;//继电器的位置,QH对应着吸合
|
||
}
|