diff --git a/protos/request.proto b/protos/request.proto index 3538f9a..e855613 100644 --- a/protos/request.proto +++ b/protos/request.proto @@ -3,6 +3,24 @@ syntax = "proto3"; package request; option go_package = "./dto/request_proto"; +// 继电器 +message Relay { + // 继电器操作 + enum Operation { + Undefined = 0; // 未定义 + ForceQw = 1; // 强制前接点位(吸起) + ForceHw = 2; // 强制后接点位(落下) + } +} + +// 继电器操作请求 +message RelayOperationReq { + string simulationId = 1; // 仿真id + int32 mapId = 2; // 图id + uint32 deviceId = 3; // 设备id + Relay.Operation operation = 4; // 继电器操作 +} + // 道岔 message Turnout { // 道岔操作