63 lines
1.3 KiB
Protocol Buffer
63 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
import "stationLayoutGraphics.proto";
|
|
|
|
package tccGraphicData;
|
|
option go_package = "joylink.club/bj-rtsts-server/dto/data_proto";
|
|
|
|
message TccGraphicStorage {
|
|
graphicData.Canvas canvas = 1;
|
|
repeated TccButton tccButtons = 2;
|
|
repeated TccText tccTexts = 3;
|
|
repeated TccKey tccKeys = 4;
|
|
repeated TccHandle tccHandles = 5;
|
|
repeated TccLight tccLights = 6;
|
|
}
|
|
|
|
/** TCC按钮 */
|
|
message TccButton {
|
|
graphicData.CommonInfo common = 1;
|
|
string code = 2;
|
|
bool isSelfReset = 3;
|
|
}
|
|
|
|
/** TCC文字 */
|
|
message TccText {
|
|
graphicData.CommonInfo common = 1;
|
|
string code = 2;
|
|
string content = 3;
|
|
string color = 4;
|
|
int32 fontSize = 5;
|
|
}
|
|
|
|
/** TCC钥匙 */
|
|
message TccKey {
|
|
enum TccKeyType {
|
|
driverControllerActivationClint = 0; //司控器激活端
|
|
frontAndRearDirectionalControl = 1;//前后方向控制
|
|
}
|
|
graphicData.CommonInfo common = 1;
|
|
string code = 2;
|
|
TccKeyType type = 3;
|
|
}
|
|
|
|
/** TCC手柄 */
|
|
message TccHandle {
|
|
graphicData.CommonInfo common = 1;
|
|
string code = 2;
|
|
}
|
|
|
|
/** TCC灯 */
|
|
message TccLight {
|
|
graphicData.CommonInfo common = 1;
|
|
string code = 2;
|
|
TccElementColor lightColor = 3;
|
|
bool activeLevel = 4;//有效电平
|
|
bool initialState = 5;//初始状态,与有效电平对比,如何相同,刚开始打开驾驶台的时候就是亮着的
|
|
}
|
|
|
|
enum TccElementColor {
|
|
green = 0;
|
|
red = 1;
|
|
blue = 2;
|
|
}
|