2023-10-09 16:45:26 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
import "stationLayoutGraphics.proto";
|
|
|
|
package ibpGraphicData;
|
2023-10-26 17:15:57 +08:00
|
|
|
option go_package = "./ts/protos/graphicData";
|
2023-10-09 16:45:26 +08:00
|
|
|
|
|
|
|
message IBPGraphicStorage {
|
|
|
|
graphicData.Canvas canvas = 1;
|
|
|
|
repeated IBPButton ibpButtons = 2;
|
2023-10-09 18:24:22 +08:00
|
|
|
repeated IbpAlarm ibpAlarms = 3;
|
|
|
|
repeated IbpKey ibpKeys = 4;
|
|
|
|
repeated IbpArrow ibpArrows = 5;
|
|
|
|
repeated IBPText IBPTexts = 6;
|
2023-10-13 13:58:53 +08:00
|
|
|
// UniqueIdType UniqueIdPrefix = 7;
|
|
|
|
repeated IbpRelatedDevice ibpRelatedDevices = 8;
|
2023-10-13 15:22:20 +08:00
|
|
|
repeated IbpLight ibpLights = 9;
|
2023-10-09 16:45:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message IBPButton {
|
|
|
|
|
|
|
|
enum IbpButtonColor {
|
|
|
|
gray = 0;
|
|
|
|
red = 1;
|
|
|
|
green = 2;
|
|
|
|
blue = 3;
|
|
|
|
yellow = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
graphicData.CommonInfo common = 1;
|
|
|
|
string code = 2;
|
|
|
|
IbpButtonColor color = 3;
|
2023-10-18 11:08:42 +08:00
|
|
|
bool isSelfReset = 4; //是否自复位
|
|
|
|
bool hasLight = 5; //是否带灯
|
2023-10-09 16:45:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message IBPText {
|
|
|
|
graphicData.CommonInfo common = 1;
|
2023-10-09 18:24:22 +08:00
|
|
|
string code = 2;
|
|
|
|
string content = 3;
|
|
|
|
string color = 4;
|
|
|
|
int32 fontSize = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message IbpAlarm {
|
|
|
|
graphicData.CommonInfo common = 1;
|
|
|
|
string code = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message IbpKey {
|
|
|
|
graphicData.CommonInfo common = 1;
|
|
|
|
string code = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message IbpArrow {
|
|
|
|
graphicData.CommonInfo common = 1;
|
|
|
|
string code = 2;
|
2023-10-13 13:32:41 +08:00
|
|
|
repeated graphicData.Point points = 3;
|
2023-10-09 16:45:26 +08:00
|
|
|
}
|
2023-10-12 16:21:12 +08:00
|
|
|
|
2023-10-13 15:22:20 +08:00
|
|
|
message IbpLight {
|
|
|
|
enum IbpLightColor {
|
|
|
|
white = 0;
|
|
|
|
red = 1;
|
|
|
|
green = 2;
|
|
|
|
blue = 3;
|
|
|
|
}
|
|
|
|
graphicData.CommonInfo common = 1;
|
|
|
|
IbpLightColor color = 2;
|
|
|
|
string code = 3;
|
|
|
|
}
|
|
|
|
|
2023-10-13 13:58:53 +08:00
|
|
|
message IbpRelatedDevice {
|
2023-10-13 16:07:36 +08:00
|
|
|
// string code = 1;
|
2023-10-13 16:37:47 +08:00
|
|
|
repeated graphicData.DeviceCombinationtype combinationtypes = 2; //组合类型
|
2023-10-13 16:07:36 +08:00
|
|
|
// graphicData.RelatedRef.DeviceType deviceType = 3; //设备类型
|
2023-10-13 13:58:53 +08:00
|
|
|
}
|