From 5b9b1500b8a111fc84263b2acc4d8e148911ecb5 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Fri, 8 Sep 2023 17:57:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=94=B5=E5=99=A8=E5=85=B3=E8=81=94?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/relayCabinetLayoutGraphics.proto | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/protos/relayCabinetLayoutGraphics.proto b/protos/relayCabinetLayoutGraphics.proto index f89e513..8469243 100644 --- a/protos/relayCabinetLayoutGraphics.proto +++ b/protos/relayCabinetLayoutGraphics.proto @@ -8,14 +8,24 @@ message RelayCabinetGraphicStorage { graphicData.Canvas canvas = 1; repeated RelayCabinet relayCabinets = 2; repeated Relay relays = 3; + repeated DeviceRelateRelay deviceRelateRelayList = 4; } message RelayCabinet { - graphicData.CommonInfo common = 1; - string code = 2; + graphicData.CommonInfo common = 1; + string code = 2;//编号 } message Relay { graphicData.CommonInfo common = 1; - string code = 2; + string code = 2;//编号 + string model = 3;//型号 +} + +/* 设备管理的继电器列表 */ +message DeviceRelateRelay { + //int32 id = 1;//存储在列表中的id + string type = 2;//设备类型 + string code = 3;//设备编号 + repeated string refRelay = 4;//设备关联的继电器 }