摁钮旁路及旁路复位protobuf复位定义
This commit is contained in:
parent
43814b9d0e
commit
936ecfec01
@ -480,6 +480,7 @@ message ButtonState {
|
||||
uint32 id = 1;
|
||||
bool down = 2;
|
||||
bool active = 3; // 带灯的按钮
|
||||
bool bypass = 4; //摁钮,钥匙 是否旁路
|
||||
}
|
||||
|
||||
// 警铃状态
|
||||
@ -511,10 +512,12 @@ message AsdState {
|
||||
bool mgj = 4; //门关继电器
|
||||
}
|
||||
|
||||
|
||||
// 钥匙状态
|
||||
message KeyState {
|
||||
uint32 id = 1;
|
||||
int32 gear = 2;
|
||||
bool bypass = 3; //摁钮,钥匙 是否旁路
|
||||
}
|
||||
|
||||
// 战场图门控箱继电器状态
|
||||
|
@ -2,6 +2,26 @@ syntax = "proto3";
|
||||
|
||||
package request;
|
||||
option go_package = "joylink.club/bj-rtsts-server/dto/request_proto";
|
||||
message BypassOperationReq{
|
||||
enum Operation{
|
||||
bypass = 0; //旁路
|
||||
bypass_reset = 1; // 旁路重置
|
||||
}
|
||||
enum BtnType{
|
||||
esb_btn = 0;
|
||||
ibp_btn = 1;
|
||||
ibp_key = 2;
|
||||
pls_btn = 3;
|
||||
}
|
||||
string simulationId = 1; // 仿真id
|
||||
int32 mapId = 2; // 图id
|
||||
uint32 deviceId = 3; // 设备id
|
||||
string deviceCode = 5;//设备code
|
||||
uint32 stationId = 6; //车站id
|
||||
uint32 gateBoxId = 7;
|
||||
BypassOperationReq.Operation operation = 8;
|
||||
BypassOperationReq.BtnType btnType = 9;
|
||||
}
|
||||
|
||||
// 继电器
|
||||
message Relay {
|
||||
|
Loading…
Reference in New Issue
Block a user