添加请求消息文件

This commit is contained in:
walker 2023-10-13 17:51:38 +08:00
parent f43d8dbec4
commit c18ac281a6

28
protos/request.proto Normal file
View File

@ -0,0 +1,28 @@
syntax = "proto3";
package request;
option go_package = "./dto/request_proto";
//
message Turnout {
//
enum Operation {
Undefined = 0; //
DC = 1; //
CancelDC = 2; //
FC = 3; //
CancelFC = 4; //
SetSB = 5; //
CancelSB = 6; //
SetJC = 7; //
CancelJC = 8; //
}
}
//
message TurnoutOperationReq {
string simulationId = 1; // 仿id
int32 mapId = 2; // id
string deviceId = 3; // id
Turnout.Operation operation = 4; //
}