|
@@ -2570,6 +2570,102 @@ func (x *FormulaOptionEnum) GetLabel() string {
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+type ClassRequest struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ KeyWord string `protobuf:"bytes,1,opt,name=key_word,json=keyWord,proto3" json:"key_word,omitempty"`
|
|
|
+ PastureId int32 `protobuf:"varint,2,opt,name=pasture_id,json=pastureId,proto3" json:"pasture_id,omitempty"`
|
|
|
+ ParentId int32 `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
|
|
|
+ ParentName string `protobuf:"bytes,4,opt,name=parent_name,json=parentName,proto3" json:"parent_name,omitempty"`
|
|
|
+ Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
+ Number string `protobuf:"bytes,6,opt,name=number,proto3" json:"number,omitempty"`
|
|
|
+ IsShow IsShow_Kind `protobuf:"varint,7,opt,name=is_show,json=isShow,proto3,enum=backend.operation.IsShow_Kind" json:"is_show,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *ClassRequest) Reset() {
|
|
|
+ *x = ClassRequest{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_backend_operation_pasture_proto_msgTypes[34]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *ClassRequest) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*ClassRequest) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *ClassRequest) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_backend_operation_pasture_proto_msgTypes[34]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+func (*ClassRequest) Descriptor() ([]byte, []int) {
|
|
|
+ return file_backend_operation_pasture_proto_rawDescGZIP(), []int{34}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *ClassRequest) GetKeyWord() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.KeyWord
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *ClassRequest) GetPastureId() int32 {
|
|
|
+ if x != nil {
|
|
|
+ return x.PastureId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *ClassRequest) GetParentId() int32 {
|
|
|
+ if x != nil {
|
|
|
+ return x.ParentId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *ClassRequest) GetParentName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ParentName
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *ClassRequest) GetName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Name
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *ClassRequest) GetNumber() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Number
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *ClassRequest) GetIsShow() IsShow_Kind {
|
|
|
+ if x != nil {
|
|
|
+ return x.IsShow
|
|
|
+ }
|
|
|
+ return IsShow_INVALID
|
|
|
+}
|
|
|
+
|
|
|
var File_backend_operation_pasture_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_backend_operation_pasture_proto_rawDesc = []byte{
|
|
@@ -3027,8 +3123,23 @@ var file_backend_operation_pasture_proto_rawDesc = []byte{
|
|
|
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
|
|
|
0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12,
|
|
|
0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
|
|
- 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x3b, 0x6f, 0x70, 0x65, 0x72, 0x61,
|
|
|
- 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0xeb, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52,
|
|
|
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x77, 0x6f,
|
|
|
+ 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x57, 0x6f, 0x72,
|
|
|
+ 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x73, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x69, 0x64, 0x18,
|
|
|
+ 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x61, 0x73, 0x74, 0x75, 0x72, 0x65, 0x49, 0x64,
|
|
|
+ 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,
|
|
|
+ 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a,
|
|
|
+ 0x0b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01,
|
|
|
+ 0x28, 0x09, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12,
|
|
|
+ 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
|
|
|
+ 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01,
|
|
|
+ 0x28, 0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x73,
|
|
|
+ 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x61,
|
|
|
+ 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
|
|
|
+ 0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x06, 0x69, 0x73, 0x53,
|
|
|
+ 0x68, 0x6f, 0x77, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x3b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
|
|
|
+ 0x6f, 0x6e, 0x50, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -3043,7 +3154,7 @@ func file_backend_operation_pasture_proto_rawDescGZIP() []byte {
|
|
|
return file_backend_operation_pasture_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_backend_operation_pasture_proto_msgTypes = make([]protoimpl.MessageInfo, 34)
|
|
|
+var file_backend_operation_pasture_proto_msgTypes = make([]protoimpl.MessageInfo, 35)
|
|
|
var file_backend_operation_pasture_proto_goTypes = []interface{}{
|
|
|
(*AddPastureRequest)(nil),
|
|
|
(*SearchPastureRequest)(nil),
|
|
@@ -3079,48 +3190,49 @@ var file_backend_operation_pasture_proto_goTypes = []interface{}{
|
|
|
(*IsShowEnum)(nil),
|
|
|
(*FormulaTypeEnum)(nil),
|
|
|
(*FormulaOptionEnum)(nil),
|
|
|
- (IsShow_Kind)(0),
|
|
|
- (*PaginationModel)(nil),
|
|
|
- (CattleCategoryParent_Kind)(0),
|
|
|
- (ForageCategoryParent_Kind)(0),
|
|
|
- (ForageSource_Kind)(0),
|
|
|
- (ForagePlanType_Kind)(0),
|
|
|
- (JumpDelaType_Kind)(0),
|
|
|
- (FormulaType_Kind)(0),
|
|
|
+ (*ClassRequest)(nil),
|
|
|
+ (IsShow_Kind)(0),
|
|
|
+ (*PaginationModel)(nil),
|
|
|
+ (CattleCategoryParent_Kind)(0),
|
|
|
+ (ForageCategoryParent_Kind)(0),
|
|
|
+ (ForageSource_Kind)(0),
|
|
|
+ (ForagePlanType_Kind)(0),
|
|
|
+ (JumpDelaType_Kind)(0),
|
|
|
+ (FormulaType_Kind)(0),
|
|
|
}
|
|
|
var file_backend_operation_pasture_proto_depIdxs = []int32{
|
|
|
- 34,
|
|
|
- 35,
|
|
|
+ 35,
|
|
|
+ 36,
|
|
|
3,
|
|
|
0,
|
|
|
- 34,
|
|
|
- 36,
|
|
|
- 34,
|
|
|
- 34,
|
|
|
- 34,
|
|
|
- 35,
|
|
|
+ 35,
|
|
|
+ 37,
|
|
|
+ 35,
|
|
|
+ 35,
|
|
|
+ 35,
|
|
|
+ 36,
|
|
|
10,
|
|
|
6,
|
|
|
- 37,
|
|
|
- 34,
|
|
|
- 34,
|
|
|
- 34,
|
|
|
- 35,
|
|
|
+ 38,
|
|
|
+ 35,
|
|
|
+ 35,
|
|
|
+ 35,
|
|
|
+ 36,
|
|
|
15,
|
|
|
11,
|
|
|
- 38,
|
|
|
- 39,
|
|
|
- 40,
|
|
|
- 34,
|
|
|
- 34,
|
|
|
- 34,
|
|
|
- 34,
|
|
|
- 40,
|
|
|
- 35,
|
|
|
+ 39,
|
|
|
+ 40,
|
|
|
+ 41,
|
|
|
+ 35,
|
|
|
+ 35,
|
|
|
+ 35,
|
|
|
+ 35,
|
|
|
+ 41,
|
|
|
+ 36,
|
|
|
19,
|
|
|
22,
|
|
|
16,
|
|
|
- 34,
|
|
|
+ 35,
|
|
|
25,
|
|
|
26,
|
|
|
27,
|
|
@@ -3137,18 +3249,19 @@ var file_backend_operation_pasture_proto_depIdxs = []int32{
|
|
|
33,
|
|
|
33,
|
|
|
33,
|
|
|
- 38,
|
|
|
- 39,
|
|
|
- 40,
|
|
|
- 36,
|
|
|
- 37,
|
|
|
- 34,
|
|
|
- 41,
|
|
|
- 55,
|
|
|
- 55,
|
|
|
- 55,
|
|
|
- 55,
|
|
|
- 0,
|
|
|
+ 39,
|
|
|
+ 40,
|
|
|
+ 41,
|
|
|
+ 37,
|
|
|
+ 38,
|
|
|
+ 35,
|
|
|
+ 42,
|
|
|
+ 35,
|
|
|
+ 56,
|
|
|
+ 56,
|
|
|
+ 56,
|
|
|
+ 56,
|
|
|
+ 0,
|
|
|
}
|
|
|
|
|
|
func init() { file_backend_operation_pasture_proto_init() }
|
|
@@ -3567,6 +3680,18 @@ func file_backend_operation_pasture_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
+ file_backend_operation_pasture_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*ClassRequest); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
type x struct{}
|
|
|
out := protoimpl.TypeBuilder{
|
|
@@ -3574,7 +3699,7 @@ func file_backend_operation_pasture_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_backend_operation_pasture_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 34,
|
|
|
+ NumMessages: 35,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 0,
|
|
|
},
|