This commit is contained in:
fan 2023-06-27 11:28:45 +08:00
commit fbedbb7457
3 changed files with 51 additions and 31 deletions

41
protos/device_info.proto Normal file
View File

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

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;
}

View File

@ -168,11 +168,19 @@ message RunLine {
} }
message Section { message Section {
enum SectionType {
Physical = 0;
Logic = 1;
TurnoutPhysical = 2;
}
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; string code = 2;
repeated Point points = 3; repeated Point points = 3;
RelatedRef paRef = 4; // A端关联的设备 RelatedRef paRef = 4; // A端关联的设备
RelatedRef pbRef = 5; // B端关联的设备 RelatedRef pbRef = 5; // B端关联的设备
SectionType sectionType = 6; //
repeated string children = 7; // /
} }
message KilometerPoint { message KilometerPoint {