2023-08-25 14:41:21 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
import "stationLayoutGraphics.proto";
|
|
|
|
|
|
|
|
package pslGraphicData;
|
2024-01-11 10:24:53 +08:00
|
|
|
option go_package = "joylink.club/bj-rtsts-server/dto/data_proto";
|
2023-08-25 14:41:21 +08:00
|
|
|
|
|
|
|
message PslGraphicStorage {
|
2023-08-28 16:36:24 +08:00
|
|
|
graphicData.Canvas canvas = 1;
|
|
|
|
repeated PslLight pslLights = 2; // psl圆形灯
|
|
|
|
repeated PslButton pslButtons = 3;
|
|
|
|
repeated PslKey pslKeys = 4;
|
2023-10-08 15:48:51 +08:00
|
|
|
repeated PslText pslTexts = 5;
|
2023-10-13 15:57:48 +08:00
|
|
|
repeated graphicData.DeviceCombinationtype gatedRelateDeviceList = 6;
|
2023-08-25 14:41:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* PSL圆形灯 */
|
|
|
|
message PslLight {
|
2023-08-29 17:40:10 +08:00
|
|
|
|
2023-08-25 14:41:21 +08:00
|
|
|
graphicData.CommonInfo common = 1;
|
|
|
|
string code = 2;
|
2023-10-08 10:31:38 +08:00
|
|
|
// string topAnnotation = 3;
|
2023-08-29 17:40:10 +08:00
|
|
|
PslElementColor lightColor = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum PslElementColor {
|
|
|
|
red = 0;
|
|
|
|
green = 1;
|
|
|
|
blue = 2;
|
2023-08-28 16:36:24 +08:00
|
|
|
}
|
2023-08-29 17:40:10 +08:00
|
|
|
|
2023-08-28 16:36:24 +08:00
|
|
|
/** PSL按钮 */
|
|
|
|
message PslButton {
|
|
|
|
graphicData.CommonInfo common = 1;
|
|
|
|
string code = 2;
|
2023-10-08 10:31:38 +08:00
|
|
|
// string topAnnotation = 3;
|
2023-08-29 17:40:10 +08:00
|
|
|
PslElementColor buttonColor = 4;
|
2023-10-18 14:41:34 +08:00
|
|
|
bool isSelfReset = 5;
|
2023-08-28 16:36:24 +08:00
|
|
|
}
|
|
|
|
/** PSL钥匙 */
|
|
|
|
message PslKey {
|
|
|
|
graphicData.CommonInfo common = 1;
|
|
|
|
string code = 2;
|
2023-10-08 10:31:38 +08:00
|
|
|
// string topAnnotation = 3;
|
|
|
|
// string rightAnnotation = 4;
|
2023-08-25 14:41:21 +08:00
|
|
|
}
|
2023-10-08 15:48:51 +08:00
|
|
|
/** psl文字 */
|
|
|
|
message PslText {
|
|
|
|
graphicData.CommonInfo common = 1;
|
|
|
|
string code = 2;
|
|
|
|
string content = 3;
|
|
|
|
string color = 4;
|
|
|
|
int32 fontSize = 5;
|
|
|
|
}
|