From cd45ee39286a3fe7519b84f38331b855c6d39be6 Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Mon, 12 Jun 2023 16:07:28 +0800 Subject: [PATCH] =?UTF-8?q?ncc=E5=8D=8F=E8=AE=AEx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/trans.proto | 50 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 protos/trans.proto diff --git a/protos/trans.proto b/protos/trans.proto new file mode 100644 index 0000000..7ef69d3 --- /dev/null +++ b/protos/trans.proto @@ -0,0 +1,50 @@ +syntax = "proto3"; + +//向前端推送的数据定义 + +package trans; +import "device_status.proto"; +option java_package = "club.joylink.xiannccda.dto.protos"; +option java_outer_classname = "TransProto"; + +//线路集中站设备状态数据 +message RtuDevicesStorage{ + //线路号 + int32 lineId = 1; + //集中站号 + int32 rtuId = 2; + //true-集中站所有设备的状态;false-增量状态 + bool all = 3; + //信号机 + repeated state.Signal signal = 4; + //道岔 + repeated state.Switch switch = 5; + //站台 + repeated state.Platform platform = 6; + //轨道 + repeated state.Track track =7; + //设备集中站 + repeated state.Rtu rtu = 8; + //车站 + repeated state.Station station = 9; + //方向设备 + repeated state.Entry entry = 10; + //供电区段 + repeated state.Scada scada = 11; + //防淹门 + repeated state.WaterProofDoor waterProofDoor = 12; + //工作区 + repeated state.WorkArea workArea = 13; + //区域自动驾驶 + repeated state.Gama gama = 14; +} + +//线路所有集中站设备状态 +message LineDevicesStorage{ + //线路号 + int32 lineId = 1; + //true-线路所有设备的状态;false-增量状态 + bool all = 2; + //线路中集中站设备状态 + repeated RtuDevicesStorage storage = 3; +}