95 lines
1.9 KiB
Protocol Buffer
95 lines
1.9 KiB
Protocol Buffer
syntax = "proto3";
|
|
import "stationLayoutGraphics.proto";
|
|
package ibpGraphicData;
|
|
option go_package = "joylink.club/bj-rtsts-server/dto/data_proto";
|
|
|
|
message IBPGraphicStorage {
|
|
graphicData.Canvas canvas = 1;
|
|
repeated IBPButton ibpButtons = 2;
|
|
repeated IbpAlarm ibpAlarms = 3;
|
|
repeated IbpKey ibpKeys = 4;
|
|
repeated IbpArrow ibpArrows = 5;
|
|
repeated IBPText IBPTexts = 6;
|
|
// UniqueIdType UniqueIdPrefix = 7;
|
|
repeated IbpRelatedDevice ibpRelatedDevices = 8;
|
|
repeated IbpLight ibpLights = 9;
|
|
repeated IbpStationText ibpStationTexts = 10;
|
|
}
|
|
|
|
message IBPButton {
|
|
|
|
enum IbpButtonColor {
|
|
gray = 0;
|
|
red = 1;
|
|
green = 2;
|
|
blue = 3;
|
|
yellow = 4;
|
|
}
|
|
|
|
graphicData.CommonInfo common = 1;
|
|
string code = 2;
|
|
IbpButtonColor color = 3;
|
|
bool isSelfReset = 4; //是否自复位
|
|
bool hasLight = 5; //是否带灯
|
|
}
|
|
|
|
message IBPText {
|
|
graphicData.CommonInfo common = 1;
|
|
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;
|
|
repeated graphicData.Point points = 3;
|
|
}
|
|
|
|
message IbpLight {
|
|
enum IbpLightColor {
|
|
white = 0;
|
|
red = 1;
|
|
green = 2;
|
|
blue = 3;
|
|
}
|
|
graphicData.CommonInfo common = 1;
|
|
IbpLightColor color = 2;
|
|
string code = 3;
|
|
}
|
|
|
|
message IbpRelatedDevice {
|
|
// string code = 1;
|
|
repeated graphicData.DeviceCombinationtype combinationtypes = 2; //组合类型
|
|
// graphicData.RelatedRef.DeviceType deviceType = 3; //设备类型
|
|
}
|
|
|
|
message IbpStationText {
|
|
enum IbpStationTextType {
|
|
CURRENT = 0;
|
|
UP = 1;
|
|
DOWN = 2;
|
|
}
|
|
enum IbpStationTextAlign {
|
|
LEFT = 0;
|
|
RIGHT = 1;
|
|
CENTER = 2;
|
|
}
|
|
graphicData.CommonInfo common = 1;
|
|
IbpStationTextType type = 2;
|
|
string color = 4;
|
|
int32 fontSize = 5;
|
|
IbpStationTextAlign align = 6;
|
|
}
|