继电器柜

This commit is contained in:
joylink_zhaoerwei 2023-08-25 17:14:44 +08:00
parent e8d0e1e675
commit cb2eeca59b
2 changed files with 69 additions and 0 deletions

View File

@ -7,4 +7,6 @@ enum PictureType {
StationLayout = 0;
/** Psl界面 */
Psl = 1;
/** 继电器柜界面 */
RelayCabinetLayout = 2;
}

View File

@ -0,0 +1,67 @@
syntax = "proto3";
package graphicData;
option java_package = "club.joylink.bjrtss.ats.verify.protos";
option java_outer_classname = "LayoutGraphicsProto";
option go_package = "./ats/verify/protos/graphicData";
message RelayCabinetGraphicStorage {
Canvas canvas = 1;
repeated RelayCabinet relayCabinets = 2;
repeated Relay relays = 3;
}
message Canvas {
//
int32 width = 1;
//
int32 height = 2;
//
string backgroundColor = 3;
//
Transform viewportTransform = 4;
}
message Point {
// x坐标
float x = 1;
// y坐标
float y = 2;
}
//
message Transform {
//
Point position = 1;
//
Point scale = 2;
//
float rotation = 3;
//
Point skew = 4;
}
//
message ChildTransform {
//
string name = 1;
//
Transform transform = 2;
}
//
message CommonInfo {
string id = 1;
string graphicType = 2;
Transform transform = 3;
repeated ChildTransform childTransforms = 4;
}
message RelayCabinet {
CommonInfo common = 1;
string code = 2;
}
message Relay {
CommonInfo common = 1;
string code = 2;
}