This commit is contained in:
xzb 2023-06-09 17:30:40 +08:00
commit d092c82311
2 changed files with 67 additions and 0 deletions

41
protos/Device.proto Normal file
View File

@ -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;
//
// 1CBTC限速
// 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;
}

View File

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