【内存中的设备结构】

This commit is contained in:
weizhihong 2023-06-27 10:48:04 +08:00
parent 93b999dd97
commit 2de5ae92a9
2 changed files with 37 additions and 29 deletions

37
protos/device_info.proto Normal file
View File

@ -0,0 +1,37 @@
syntax = "proto3";
package state;
import "stationLayoutGraphics.proto";
option java_package = "club.joylink.xiannccda.dto.protos";
option java_outer_classname = "DeviceInfoProto";
//
message Section {
//
string code = 1;
//
graphicData.Section.SectionType type = 2;
// a端公里标
string paKilometerCode = 3;
// b端公里标
string pbKilometerCode = 4;
//
repeated Section children = 5;
}
//
message Switch {
string code = 1;
Section paSection = 2;
Section pbSection = 3;
Section pcSection = 4;
}

View File

@ -1,29 +0,0 @@
syntax = "proto3";
package state;
option java_package = "club.joylink.xiannccda.dto.protos";
option java_outer_classname = "SectionProto";
message Section {
//
string code = 1;
//
Section leftSection = 2;
//
Section rightSection = 3;
//
bool axleCounter = 4;
//
repeated Section logicList = 5;
//
string leftKilometerCode = 6;
//
string rightKilometerCode = 7;
}