This commit is contained in:
weizhihong 2023-10-31 09:39:47 +08:00
commit 289c82de80
7 changed files with 78 additions and 34 deletions

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc-gen-go v1.31.0
// protoc v4.23.1
// source: request.proto
@ -165,14 +165,12 @@ func (Signal_Operation) EnumDescriptor() ([]byte, []int) {
return file_request_proto_rawDescGZIP(), []int{2, 0}
}
// 计轴区段操作
// 计轴操作
type Section_AxleOperation int32
const (
Section_Drst Section_AxleOperation = 0 //设置计轴直接复位
Section_Pdrst Section_AxleOperation = 1 //设置计轴预复位
Section_TrainIn Section_AxleOperation = 2 //设置计轴区段内有车轴
Section_TrainOut Section_AxleOperation = 3 //设置计轴区段内没有车轴
Section_Drst Section_AxleOperation = 0 //设置计轴直接复位
Section_Pdrst Section_AxleOperation = 1 //设置计轴预复位
)
// Enum value maps for Section_AxleOperation.
@ -180,14 +178,10 @@ var (
Section_AxleOperation_name = map[int32]string{
0: "Drst",
1: "Pdrst",
2: "TrainIn",
3: "TrainOut",
}
Section_AxleOperation_value = map[string]int32{
"Drst": 0,
"Pdrst": 1,
"TrainIn": 2,
"TrainOut": 3,
"Drst": 0,
"Pdrst": 1,
}
)
@ -218,6 +212,53 @@ func (Section_AxleOperation) EnumDescriptor() ([]byte, []int) {
return file_request_proto_rawDescGZIP(), []int{3, 0}
}
// 区段操作
type Section_SectionOperation int32
const (
Section_SetFaultOcc Section_SectionOperation = 0 //设置故障占用
Section_CancelFaultOcc Section_SectionOperation = 1 //取消故障占用
)
// Enum value maps for Section_SectionOperation.
var (
Section_SectionOperation_name = map[int32]string{
0: "SetFaultOcc",
1: "CancelFaultOcc",
}
Section_SectionOperation_value = map[string]int32{
"SetFaultOcc": 0,
"CancelFaultOcc": 1,
}
)
func (x Section_SectionOperation) Enum() *Section_SectionOperation {
p := new(Section_SectionOperation)
*p = x
return p
}
func (x Section_SectionOperation) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Section_SectionOperation) Descriptor() protoreflect.EnumDescriptor {
return file_request_proto_enumTypes[3].Descriptor()
}
func (Section_SectionOperation) Type() protoreflect.EnumType {
return &file_request_proto_enumTypes[3]
}
func (x Section_SectionOperation) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Section_SectionOperation.Descriptor instead.
func (Section_SectionOperation) EnumDescriptor() ([]byte, []int) {
return file_request_proto_rawDescGZIP(), []int{3, 1}
}
// 道岔
type Turnout struct {
state protoimpl.MessageState
@ -445,14 +486,16 @@ var file_request_proto_rawDesc = []byte{
0x10, 0x08, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x4c, 0x43, 0x61, 0x6e, 0x63,
0x65, 0x6c, 0x44, 0x73, 0x10, 0x09, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x41,
0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x44, 0x73, 0x10, 0x0a, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x69,
0x67, 0x68, 0x74, 0x42, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x44, 0x73, 0x10, 0x0b, 0x22, 0x4a,
0x0a, 0x07, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3f, 0x0a, 0x0d, 0x41, 0x78, 0x6c,
0x67, 0x68, 0x74, 0x42, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x44, 0x73, 0x10, 0x0b, 0x22, 0x68,
0x0a, 0x07, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x24, 0x0a, 0x0d, 0x41, 0x78, 0x6c,
0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72,
0x73, 0x74, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x64, 0x72, 0x73, 0x74, 0x10, 0x01, 0x12,
0x0b, 0x0a, 0x07, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08,
0x54, 0x72, 0x61, 0x69, 0x6e, 0x4f, 0x75, 0x74, 0x10, 0x03, 0x42, 0x15, 0x5a, 0x13, 0x2e, 0x2f,
0x64, 0x74, 0x6f, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x73, 0x74, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x64, 0x72, 0x73, 0x74, 0x10, 0x01, 0x22,
0x37, 0x0a, 0x10, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x4f,
0x63, 0x63, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x46, 0x61,
0x75, 0x6c, 0x74, 0x4f, 0x63, 0x63, 0x10, 0x01, 0x42, 0x15, 0x5a, 0x13, 0x2e, 0x2f, 0x64, 0x74,
0x6f, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@ -467,16 +510,17 @@ func file_request_proto_rawDescGZIP() []byte {
return file_request_proto_rawDescData
}
var file_request_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
var file_request_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
var file_request_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_request_proto_goTypes = []interface{}{
(Turnout_Operation)(0), // 0: request.Turnout.Operation
(Signal_Operation)(0), // 1: request.Signal.Operation
(Section_AxleOperation)(0), // 2: request.Section.AxleOperation
(*Turnout)(nil), // 3: request.Turnout
(*TurnoutOperationReq)(nil), // 4: request.TurnoutOperationReq
(*Signal)(nil), // 5: request.Signal
(*Section)(nil), // 6: request.Section
(Turnout_Operation)(0), // 0: request.Turnout.Operation
(Signal_Operation)(0), // 1: request.Signal.Operation
(Section_AxleOperation)(0), // 2: request.Section.AxleOperation
(Section_SectionOperation)(0), // 3: request.Section.SectionOperation
(*Turnout)(nil), // 4: request.Turnout
(*TurnoutOperationReq)(nil), // 5: request.TurnoutOperationReq
(*Signal)(nil), // 6: request.Signal
(*Section)(nil), // 7: request.Section
}
var file_request_proto_depIdxs = []int32{
0, // 0: request.TurnoutOperationReq.operation:type_name -> request.Turnout.Operation
@ -547,7 +591,7 @@ func file_request_proto_init() {
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_request_proto_rawDesc,
NumEnums: 3,
NumEnums: 4,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc-gen-go v1.31.0
// protoc v4.23.1
// source: ibpGraphics.proto

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc-gen-go v1.31.0
// protoc v4.23.1
// source: picture.proto

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc-gen-go v1.31.0
// protoc v4.23.1
// source: pslGraphics.proto

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc-gen-go v1.31.0
// protoc v4.23.1
// source: relayCabinetLayoutGraphics.proto

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc-gen-go v1.31.0
// protoc v4.23.1
// source: stationLayoutGraphics.proto

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc-gen-go v1.31.0
// protoc v4.23.1
// source: device_state.proto