From ad518abef0ee641a616cd9c63dfd3cbca37f717d Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Fri, 13 Oct 2023 14:56:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protos/device_state.proto b/protos/device_state.proto index 7634f58..43e385e 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -54,6 +54,8 @@ message SwitchState{ message SignalState{ //信号机索引 string id = 1; + //信号机显示 + Signal.Aspect aspect = 2; } //信号机显示枚举定义 message Signal { From 8c5cf8f0d5e8ff2088ba1835c8063a60fe4b8e9e Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Fri, 13 Oct 2023 15:18:12 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E6=9C=BA=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protos/device_state.proto b/protos/device_state.proto index 7634f58..658f618 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -256,6 +256,8 @@ message AllDevicesStatus{ repeated SectionState sectionState = 3; // 所有继电器状态 repeated ReplyState replyState = 4; + // 所有信号机状态 + repeated SignalState signalState = 5; } //服务器端向前端推送的设备状态信息