|
@@ -687,6 +687,301 @@ func (x *SearchCattleCategoryResponse) GetList() []*AddCattleCategoryRequest {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+// 添加饲料分类
|
|
|
+type AddForageCategoryRequest struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
+ ParentId ForageCategoryParent_Kind `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3,enum=backend.operation.ForageCategoryParent_Kind" json:"parent_id,omitempty"` // 父类id
|
|
|
+ ParentName string `protobuf:"bytes,3,opt,name=parent_name,json=parentName,proto3" json:"parent_name,omitempty"` // 父类名称
|
|
|
+ Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // 牧畜分类名称
|
|
|
+ Number string `protobuf:"bytes,5,opt,name=number,proto3" json:"number,omitempty"` // 畜牧类别编号
|
|
|
+ IsShow IsShow_Kind `protobuf:"varint,6,opt,name=is_show,json=isShow,proto3,enum=backend.operation.IsShow_Kind" json:"is_show,omitempty"` // 是否启用
|
|
|
+ CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间
|
|
|
+ CreatedAtFormat string `protobuf:"bytes,8,opt,name=created_at_format,json=createdAtFormat,proto3" json:"created_at_format,omitempty"` // 创建时间格式
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AddForageCategoryRequest) Reset() {
|
|
|
+ *x = AddForageCategoryRequest{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_backend_operation_pasture_proto_msgTypes[9]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AddForageCategoryRequest) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*AddForageCategoryRequest) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *AddForageCategoryRequest) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_backend_operation_pasture_proto_msgTypes[9]
|
|
|
+ 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)
|
|
|
+}
|
|
|
+
|
|
|
+// Deprecated: Use AddForageCategoryRequest.ProtoReflect.Descriptor instead.
|
|
|
+func (*AddForageCategoryRequest) Descriptor() ([]byte, []int) {
|
|
|
+ return file_backend_operation_pasture_proto_rawDescGZIP(), []int{9}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AddForageCategoryRequest) GetId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Id
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AddForageCategoryRequest) GetParentId() ForageCategoryParent_Kind {
|
|
|
+ if x != nil {
|
|
|
+ return x.ParentId
|
|
|
+ }
|
|
|
+ return ForageCategoryParent_INVALID
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AddForageCategoryRequest) GetParentName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ParentName
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AddForageCategoryRequest) GetName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Name
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AddForageCategoryRequest) GetNumber() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Number
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AddForageCategoryRequest) GetIsShow() IsShow_Kind {
|
|
|
+ if x != nil {
|
|
|
+ return x.IsShow
|
|
|
+ }
|
|
|
+ return IsShow_INVALID
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AddForageCategoryRequest) GetCreatedAt() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.CreatedAt
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *AddForageCategoryRequest) GetCreatedAtFormat() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.CreatedAtFormat
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+// 是否启用
|
|
|
+type IsShowForageCategory struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ ForageCategoryId int64 `protobuf:"varint,1,opt,name=forage_category_id,json=forageCategoryId,proto3" json:"forage_category_id,omitempty"`
|
|
|
+ IsShow IsShow_Kind `protobuf:"varint,2,opt,name=is_show,json=isShow,proto3,enum=backend.operation.IsShow_Kind" json:"is_show,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *IsShowForageCategory) Reset() {
|
|
|
+ *x = IsShowForageCategory{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_backend_operation_pasture_proto_msgTypes[10]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *IsShowForageCategory) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*IsShowForageCategory) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *IsShowForageCategory) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_backend_operation_pasture_proto_msgTypes[10]
|
|
|
+ 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)
|
|
|
+}
|
|
|
+
|
|
|
+// Deprecated: Use IsShowForageCategory.ProtoReflect.Descriptor instead.
|
|
|
+func (*IsShowForageCategory) Descriptor() ([]byte, []int) {
|
|
|
+ return file_backend_operation_pasture_proto_rawDescGZIP(), []int{10}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *IsShowForageCategory) GetForageCategoryId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.ForageCategoryId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *IsShowForageCategory) GetIsShow() IsShow_Kind {
|
|
|
+ if x != nil {
|
|
|
+ return x.IsShow
|
|
|
+ }
|
|
|
+ return IsShow_INVALID
|
|
|
+}
|
|
|
+
|
|
|
+// 饲料分类查询列表
|
|
|
+type SearchForageCategoryRequest struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ ParentName string `protobuf:"bytes,1,opt,name=parent_name,json=parentName,proto3" json:"parent_name,omitempty"`
|
|
|
+ IsShow IsShow_Kind `protobuf:"varint,2,opt,name=is_show,json=isShow,proto3,enum=backend.operation.IsShow_Kind" json:"is_show,omitempty"`
|
|
|
+ Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
+ Pagination *PaginationModel `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"` // 分页
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchForageCategoryRequest) Reset() {
|
|
|
+ *x = SearchForageCategoryRequest{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_backend_operation_pasture_proto_msgTypes[11]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchForageCategoryRequest) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*SearchForageCategoryRequest) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *SearchForageCategoryRequest) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_backend_operation_pasture_proto_msgTypes[11]
|
|
|
+ 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)
|
|
|
+}
|
|
|
+
|
|
|
+// Deprecated: Use SearchForageCategoryRequest.ProtoReflect.Descriptor instead.
|
|
|
+func (*SearchForageCategoryRequest) Descriptor() ([]byte, []int) {
|
|
|
+ return file_backend_operation_pasture_proto_rawDescGZIP(), []int{11}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchForageCategoryRequest) GetParentName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ParentName
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchForageCategoryRequest) GetIsShow() IsShow_Kind {
|
|
|
+ if x != nil {
|
|
|
+ return x.IsShow
|
|
|
+ }
|
|
|
+ return IsShow_INVALID
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchForageCategoryRequest) GetName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Name
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchForageCategoryRequest) GetPagination() *PaginationModel {
|
|
|
+ if x != nil {
|
|
|
+ return x.Pagination
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type SearchForageCategoryResponse struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
|
|
|
+ Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
|
|
+ List []*AddForageCategoryRequest `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchForageCategoryResponse) Reset() {
|
|
|
+ *x = SearchForageCategoryResponse{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_backend_operation_pasture_proto_msgTypes[12]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchForageCategoryResponse) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*SearchForageCategoryResponse) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *SearchForageCategoryResponse) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_backend_operation_pasture_proto_msgTypes[12]
|
|
|
+ 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)
|
|
|
+}
|
|
|
+
|
|
|
+// Deprecated: Use SearchForageCategoryResponse.ProtoReflect.Descriptor instead.
|
|
|
+func (*SearchForageCategoryResponse) Descriptor() ([]byte, []int) {
|
|
|
+ return file_backend_operation_pasture_proto_rawDescGZIP(), []int{12}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchForageCategoryResponse) GetPage() int32 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Page
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchForageCategoryResponse) GetTotal() int32 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Total
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SearchForageCategoryResponse) GetList() []*AddForageCategoryRequest {
|
|
|
+ if x != nil {
|
|
|
+ return x.List
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
var File_backend_operation_pasture_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_backend_operation_pasture_proto_rawDesc = []byte{
|
|
@@ -802,9 +1097,59 @@ var file_backend_operation_pasture_proto_rawDesc = []byte{
|
|
|
0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65,
|
|
|
0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64,
|
|
|
0x43, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65,
|
|
|
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 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,
|
|
|
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0xc6, 0x02, 0x0a, 0x18,
|
|
|
+ 0x41, 0x64, 0x64, 0x46, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
|
|
|
+ 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
|
|
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65,
|
|
|
+ 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x62, 0x61,
|
|
|
+ 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
|
|
|
+ 0x46, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x50, 0x61,
|
|
|
+ 0x72, 0x65, 0x6e, 0x74, 0x2e, 0x4b, 0x69, 0x6e, 0x64, 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, 0x03, 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, 0x04, 0x20, 0x01,
|
|
|
+ 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62,
|
|
|
+ 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
|
|
|
+ 0x12, 0x37, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x18, 0x06, 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, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65,
|
|
|
+ 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63,
|
|
|
+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61,
|
|
|
+ 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x08, 0x20,
|
|
|
+ 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x46, 0x6f,
|
|
|
+ 0x72, 0x6d, 0x61, 0x74, 0x22, 0x7d, 0x0a, 0x14, 0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x46, 0x6f,
|
|
|
+ 0x72, 0x61, 0x67, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x2c, 0x0a, 0x12,
|
|
|
+ 0x66, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f,
|
|
|
+ 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x66, 0x6f, 0x72, 0x61, 0x67, 0x65,
|
|
|
+ 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x73,
|
|
|
+ 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x18, 0x02, 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, 0x22, 0xcf, 0x01, 0x0a, 0x1b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x46, 0x6f,
|
|
|
+ 0x72, 0x61, 0x67, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75,
|
|
|
+ 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x61,
|
|
|
+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
|
|
|
+ 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x18,
|
|
|
+ 0x02, 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, 0x12, 0x12, 0x0a,
|
|
|
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
|
|
|
+ 0x65, 0x12, 0x42, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
|
|
+ 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e,
|
|
|
+ 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61,
|
|
|
+ 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e,
|
|
|
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x89, 0x01, 0x0a, 0x1c, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,
|
|
|
+ 0x46, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65,
|
|
|
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01,
|
|
|
+ 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f,
|
|
|
+ 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c,
|
|
|
+ 0x12, 0x3f, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b,
|
|
|
+ 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
|
|
|
+ 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x46, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x61, 0x74, 0x65,
|
|
|
+ 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x6c, 0x69, 0x73,
|
|
|
+ 0x74, 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 (
|
|
@@ -819,7 +1164,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, 9)
|
|
|
+var file_backend_operation_pasture_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
|
|
var file_backend_operation_pasture_proto_goTypes = []interface{}{
|
|
|
(*AddPastureRequest)(nil), // 0: backend.operation.AddPastureRequest
|
|
|
(*SearchPastureRequest)(nil), // 1: backend.operation.SearchPastureRequest
|
|
@@ -830,26 +1175,37 @@ var file_backend_operation_pasture_proto_goTypes = []interface{}{
|
|
|
(*IsShowCattleCategory)(nil), // 6: backend.operation.IsShowCattleCategory
|
|
|
(*SearchCattleCategoryRequest)(nil), // 7: backend.operation.SearchCattleCategoryRequest
|
|
|
(*SearchCattleCategoryResponse)(nil), // 8: backend.operation.SearchCattleCategoryResponse
|
|
|
- (IsShow_Kind)(0), // 9: backend.operation.IsShow.Kind
|
|
|
- (*PaginationModel)(nil), // 10: backend.operation.PaginationModel
|
|
|
- (CattleCategoryParent_Kind)(0), // 11: backend.operation.CattleCategoryParent.Kind
|
|
|
+ (*AddForageCategoryRequest)(nil), // 9: backend.operation.AddForageCategoryRequest
|
|
|
+ (*IsShowForageCategory)(nil), // 10: backend.operation.IsShowForageCategory
|
|
|
+ (*SearchForageCategoryRequest)(nil), // 11: backend.operation.SearchForageCategoryRequest
|
|
|
+ (*SearchForageCategoryResponse)(nil), // 12: backend.operation.SearchForageCategoryResponse
|
|
|
+ (IsShow_Kind)(0), // 13: backend.operation.IsShow.Kind
|
|
|
+ (*PaginationModel)(nil), // 14: backend.operation.PaginationModel
|
|
|
+ (CattleCategoryParent_Kind)(0), // 15: backend.operation.CattleCategoryParent.Kind
|
|
|
+ (ForageCategoryParent_Kind)(0), // 16: backend.operation.ForageCategoryParent.Kind
|
|
|
}
|
|
|
var file_backend_operation_pasture_proto_depIdxs = []int32{
|
|
|
- 9, // 0: backend.operation.AddPastureRequest.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
- 10, // 1: backend.operation.SearchPastureRequest.pagination:type_name -> backend.operation.PaginationModel
|
|
|
+ 13, // 0: backend.operation.AddPastureRequest.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
+ 14, // 1: backend.operation.SearchPastureRequest.pagination:type_name -> backend.operation.PaginationModel
|
|
|
0, // 2: backend.operation.SearchPastureResponse.list:type_name -> backend.operation.AddPastureRequest
|
|
|
- 9, // 3: backend.operation.IsShowGroupPasture.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
- 11, // 4: backend.operation.AddCattleCategoryRequest.parent_id:type_name -> backend.operation.CattleCategoryParent.Kind
|
|
|
- 9, // 5: backend.operation.AddCattleCategoryRequest.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
- 9, // 6: backend.operation.IsShowCattleCategory.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
- 9, // 7: backend.operation.SearchCattleCategoryRequest.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
- 10, // 8: backend.operation.SearchCattleCategoryRequest.pagination:type_name -> backend.operation.PaginationModel
|
|
|
+ 13, // 3: backend.operation.IsShowGroupPasture.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
+ 15, // 4: backend.operation.AddCattleCategoryRequest.parent_id:type_name -> backend.operation.CattleCategoryParent.Kind
|
|
|
+ 13, // 5: backend.operation.AddCattleCategoryRequest.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
+ 13, // 6: backend.operation.IsShowCattleCategory.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
+ 13, // 7: backend.operation.SearchCattleCategoryRequest.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
+ 14, // 8: backend.operation.SearchCattleCategoryRequest.pagination:type_name -> backend.operation.PaginationModel
|
|
|
5, // 9: backend.operation.SearchCattleCategoryResponse.list:type_name -> backend.operation.AddCattleCategoryRequest
|
|
|
- 10, // [10:10] is the sub-list for method output_type
|
|
|
- 10, // [10:10] is the sub-list for method input_type
|
|
|
- 10, // [10:10] is the sub-list for extension type_name
|
|
|
- 10, // [10:10] is the sub-list for extension extendee
|
|
|
- 0, // [0:10] is the sub-list for field type_name
|
|
|
+ 16, // 10: backend.operation.AddForageCategoryRequest.parent_id:type_name -> backend.operation.ForageCategoryParent.Kind
|
|
|
+ 13, // 11: backend.operation.AddForageCategoryRequest.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
+ 13, // 12: backend.operation.IsShowForageCategory.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
+ 13, // 13: backend.operation.SearchForageCategoryRequest.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
+ 14, // 14: backend.operation.SearchForageCategoryRequest.pagination:type_name -> backend.operation.PaginationModel
|
|
|
+ 9, // 15: backend.operation.SearchForageCategoryResponse.list:type_name -> backend.operation.AddForageCategoryRequest
|
|
|
+ 16, // [16:16] is the sub-list for method output_type
|
|
|
+ 16, // [16:16] is the sub-list for method input_type
|
|
|
+ 16, // [16:16] is the sub-list for extension type_name
|
|
|
+ 16, // [16:16] is the sub-list for extension extendee
|
|
|
+ 0, // [0:16] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
func init() { file_backend_operation_pasture_proto_init() }
|
|
@@ -968,6 +1324,54 @@ func file_backend_operation_pasture_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
+ file_backend_operation_pasture_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*AddForageCategoryRequest); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_backend_operation_pasture_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*IsShowForageCategory); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_backend_operation_pasture_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*SearchForageCategoryRequest); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_backend_operation_pasture_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*SearchForageCategoryResponse); 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{
|
|
@@ -975,7 +1379,7 @@ func file_backend_operation_pasture_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_backend_operation_pasture_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 9,
|
|
|
+ NumMessages: 13,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 0,
|
|
|
},
|