From a8afc44290373cc61ad855327637032102fd10a0 Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Fri, 9 Jun 2023 14:47:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E5=AE=9E=E6=97=B6=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/Device.proto | 41 +++++++++++++++++++++++++++++++++ protos/LineNetTrainOffset.proto | 26 +++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 protos/Device.proto create mode 100644 protos/LineNetTrainOffset.proto diff --git a/protos/Device.proto b/protos/Device.proto new file mode 100644 index 0000000..a19e590 --- /dev/null +++ b/protos/Device.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; + +option java_package = "club.joylink.xiannccda.dto.protos"; +option java_outer_classname = "DeviceProto"; +message Device{ + int32 lineId = 1; + int32 reportId = 2; + +} + +message DeviceDetail{ + string deviceType = 1; + string deviceName = 2; + // int32 status = 3; + +} +message Track{ + Device device = 1; + DeviceDetail detail = 2; + //限速 + float speedLimit = 3; + //限速类型 + // 为1时,CBTC限速; + // 为2时,联锁限速; + // 为4时,同时限速。 + int32 limitType = 4; +} + +message Platform{ + Device device = 1; + DeviceDetail detail = 2; + //停站时间 + int32 stopTime = 3; +} + +message Switch{ + Device device = 1; + DeviceDetail detail = 2; + //限速 + float speedLimit = 3; +} \ No newline at end of file diff --git a/protos/LineNetTrainOffset.proto b/protos/LineNetTrainOffset.proto new file mode 100644 index 0000000..6166709 --- /dev/null +++ b/protos/LineNetTrainOffset.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +option java_package = "club.joylink.xiannccda.proto.data"; +option java_outer_classname = "LineNetTrainOffsetProto"; +//线网车辆位置 +message LineNetTrainOffset{ + //线路id + int32 lineId = 1; + //车组号 + string Group_id = 2; + //方向 + int32 dir = 3; + // true-到达,false-出发 + bool initType = 4; + //位置 + int32 offset = 5; + //目的地id + int32 destinationId = 6; + //后方车站 + int32 backId = 7; + //是否删除 + bool show = 8; + //完成率 + float rate = 9; +} +