摁钮旁路及旁路复位protobuf复位定义

This commit is contained in:
tiger_zhou 2024-02-04 14:46:32 +08:00
parent 43814b9d0e
commit 936ecfec01
2 changed files with 23 additions and 0 deletions

View File

@ -480,6 +480,7 @@ message ButtonState {
uint32 id = 1; uint32 id = 1;
bool down = 2; bool down = 2;
bool active = 3; // bool active = 3; //
bool bypass = 4; //
} }
// //
@ -511,10 +512,12 @@ message AsdState {
bool mgj = 4; // bool mgj = 4; //
} }
// //
message KeyState { message KeyState {
uint32 id = 1; uint32 id = 1;
int32 gear = 2; int32 gear = 2;
bool bypass = 3; //
} }
// //

View File

@ -2,6 +2,26 @@ syntax = "proto3";
package request; package request;
option go_package = "joylink.club/bj-rtsts-server/dto/request_proto"; 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 { message Relay {