|
@@ -608,12 +608,15 @@ func (x *DistributeFeedFormulaRequest) GetFeedFormulaIds() []int32 {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+// 配方使用概况
|
|
|
type FeedFormulaUsageRequest struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- FeedFormulaId int32 `protobuf:"varint,1,opt,name=feed_formula_id,json=feedFormulaId,proto3" json:"feed_formula_id,omitempty"` // 饲料配方id
|
|
|
+ FeedFormulaId int32 `protobuf:"varint,1,opt,name=feed_formula_id,json=feedFormulaId,proto3" json:"feed_formula_id,omitempty"` // 饲料配方id
|
|
|
+ StartTime string `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // 开始时间
|
|
|
+ EndTime string `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // 结束时间
|
|
|
}
|
|
|
|
|
|
func (x *FeedFormulaUsageRequest) Reset() {
|
|
@@ -655,6 +658,124 @@ func (x *FeedFormulaUsageRequest) GetFeedFormulaId() int32 {
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
+func (x *FeedFormulaUsageRequest) GetStartTime() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.StartTime
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *FeedFormulaUsageRequest) GetEndTime() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.EndTime
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+// 配方使用概况
|
|
|
+type FeedFormulaUsageResponse struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ List []*FeedFormulaUsageList `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *FeedFormulaUsageResponse) Reset() {
|
|
|
+ *x = FeedFormulaUsageResponse{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_backend_operation_feed_formula_proto_msgTypes[8]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *FeedFormulaUsageResponse) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*FeedFormulaUsageResponse) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *FeedFormulaUsageResponse) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_backend_operation_feed_formula_proto_msgTypes[8]
|
|
|
+ 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 FeedFormulaUsageResponse.ProtoReflect.Descriptor instead.
|
|
|
+func (*FeedFormulaUsageResponse) Descriptor() ([]byte, []int) {
|
|
|
+ return file_backend_operation_feed_formula_proto_rawDescGZIP(), []int{8}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *FeedFormulaUsageResponse) GetList() []*FeedFormulaUsageList {
|
|
|
+ if x != nil {
|
|
|
+ return x.List
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+// 配方使用概况
|
|
|
+type FeedFormulaUsageList struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ PastureId int32 `protobuf:"varint,1,opt,name=pasture_id,json=pastureId,proto3" json:"pasture_id,omitempty"`
|
|
|
+ PastureName string `protobuf:"bytes,2,opt,name=pasture_name,json=pastureName,proto3" json:"pasture_name,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *FeedFormulaUsageList) Reset() {
|
|
|
+ *x = FeedFormulaUsageList{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_backend_operation_feed_formula_proto_msgTypes[9]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *FeedFormulaUsageList) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*FeedFormulaUsageList) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *FeedFormulaUsageList) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_backend_operation_feed_formula_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 FeedFormulaUsageList.ProtoReflect.Descriptor instead.
|
|
|
+func (*FeedFormulaUsageList) Descriptor() ([]byte, []int) {
|
|
|
+ return file_backend_operation_feed_formula_proto_rawDescGZIP(), []int{9}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *FeedFormulaUsageList) GetPastureId() int32 {
|
|
|
+ if x != nil {
|
|
|
+ return x.PastureId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *FeedFormulaUsageList) GetPastureName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.PastureName
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
type UniqueID_UniqueData struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
@@ -666,7 +787,7 @@ type UniqueID_UniqueData struct {
|
|
|
func (x *UniqueID_UniqueData) Reset() {
|
|
|
*x = UniqueID_UniqueData{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_backend_operation_feed_formula_proto_msgTypes[8]
|
|
|
+ mi := &file_backend_operation_feed_formula_proto_msgTypes[10]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
@@ -679,7 +800,7 @@ func (x *UniqueID_UniqueData) String() string {
|
|
|
func (*UniqueID_UniqueData) ProtoMessage() {}
|
|
|
|
|
|
func (x *UniqueID_UniqueData) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_backend_operation_feed_formula_proto_msgTypes[8]
|
|
|
+ mi := &file_backend_operation_feed_formula_proto_msgTypes[10]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -824,13 +945,27 @@ var file_backend_operation_feed_formula_proto_rawDesc = []byte{
|
|
|
0x05, 0x52, 0x0a, 0x70, 0x61, 0x73, 0x74, 0x75, 0x72, 0x65, 0x49, 0x64, 0x73, 0x12, 0x28, 0x0a,
|
|
|
0x10, 0x66, 0x65, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x75, 0x6c, 0x61, 0x5f, 0x69, 0x64,
|
|
|
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0e, 0x66, 0x65, 0x65, 0x64, 0x46, 0x6f, 0x72,
|
|
|
- 0x6d, 0x75, 0x6c, 0x61, 0x49, 0x64, 0x73, 0x22, 0x41, 0x0a, 0x17, 0x46, 0x65, 0x65, 0x64, 0x46,
|
|
|
+ 0x6d, 0x75, 0x6c, 0x61, 0x49, 0x64, 0x73, 0x22, 0x7b, 0x0a, 0x17, 0x46, 0x65, 0x65, 0x64, 0x46,
|
|
|
0x6f, 0x72, 0x6d, 0x75, 0x6c, 0x61, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
0x73, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x66, 0x65, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x75,
|
|
|
0x6c, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x66, 0x65, 0x65,
|
|
|
- 0x64, 0x46, 0x6f, 0x72, 0x6d, 0x75, 0x6c, 0x61, 0x49, 0x64, 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,
|
|
|
+ 0x64, 0x46, 0x6f, 0x72, 0x6d, 0x75, 0x6c, 0x61, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74,
|
|
|
+ 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
|
|
|
+ 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64,
|
|
|
+ 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x6e, 0x64,
|
|
|
+ 0x54, 0x69, 0x6d, 0x65, 0x22, 0x57, 0x0a, 0x18, 0x46, 0x65, 0x65, 0x64, 0x46, 0x6f, 0x72, 0x6d,
|
|
|
+ 0x75, 0x6c, 0x61, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
+ 0x12, 0x3b, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27,
|
|
|
+ 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
|
|
|
+ 0x6f, 0x6e, 0x2e, 0x46, 0x65, 0x65, 0x64, 0x46, 0x6f, 0x72, 0x6d, 0x75, 0x6c, 0x61, 0x55, 0x73,
|
|
|
+ 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x58, 0x0a,
|
|
|
+ 0x14, 0x46, 0x65, 0x65, 0x64, 0x46, 0x6f, 0x72, 0x6d, 0x75, 0x6c, 0x61, 0x55, 0x73, 0x61, 0x67,
|
|
|
+ 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x73, 0x74, 0x75, 0x72, 0x65,
|
|
|
+ 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x61, 0x73, 0x74, 0x75,
|
|
|
+ 0x72, 0x65, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x73, 0x74, 0x75, 0x72, 0x65, 0x5f,
|
|
|
+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x73, 0x74,
|
|
|
+ 0x75, 0x72, 0x65, 0x4e, 0x61, 0x6d, 0x65, 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 (
|
|
@@ -845,7 +980,7 @@ func file_backend_operation_feed_formula_proto_rawDescGZIP() []byte {
|
|
|
return file_backend_operation_feed_formula_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_backend_operation_feed_formula_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
|
+var file_backend_operation_feed_formula_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
|
|
var file_backend_operation_feed_formula_proto_goTypes = []interface{}{
|
|
|
(*AddFeedFormulaRequest)(nil), // 0: backend.operation.AddFeedFormulaRequest
|
|
|
(*SearchFeedFormulaRequest)(nil), // 1: backend.operation.SearchFeedFormulaRequest
|
|
@@ -855,28 +990,31 @@ var file_backend_operation_feed_formula_proto_goTypes = []interface{}{
|
|
|
(*UniqueID)(nil), // 5: backend.operation.UniqueID
|
|
|
(*DistributeFeedFormulaRequest)(nil), // 6: backend.operation.DistributeFeedFormulaRequest
|
|
|
(*FeedFormulaUsageRequest)(nil), // 7: backend.operation.FeedFormulaUsageRequest
|
|
|
- (*UniqueID_UniqueData)(nil), // 8: backend.operation.UniqueID.UniqueData
|
|
|
- (CattleCategoryParent_Kind)(0), // 9: backend.operation.CattleCategoryParent.Kind
|
|
|
- (DataSource_Kind)(0), // 10: backend.operation.DataSource.Kind
|
|
|
- (IsShow_Kind)(0), // 11: backend.operation.IsShow.Kind
|
|
|
- (*PaginationModel)(nil), // 12: backend.operation.PaginationModel
|
|
|
+ (*FeedFormulaUsageResponse)(nil), // 8: backend.operation.FeedFormulaUsageResponse
|
|
|
+ (*FeedFormulaUsageList)(nil), // 9: backend.operation.FeedFormulaUsageList
|
|
|
+ (*UniqueID_UniqueData)(nil), // 10: backend.operation.UniqueID.UniqueData
|
|
|
+ (CattleCategoryParent_Kind)(0), // 11: backend.operation.CattleCategoryParent.Kind
|
|
|
+ (DataSource_Kind)(0), // 12: backend.operation.DataSource.Kind
|
|
|
+ (IsShow_Kind)(0), // 13: backend.operation.IsShow.Kind
|
|
|
+ (*PaginationModel)(nil), // 14: backend.operation.PaginationModel
|
|
|
}
|
|
|
var file_backend_operation_feed_formula_proto_depIdxs = []int32{
|
|
|
- 9, // 0: backend.operation.AddFeedFormulaRequest.cattle_category_id:type_name -> backend.operation.CattleCategoryParent.Kind
|
|
|
- 10, // 1: backend.operation.AddFeedFormulaRequest.data_source_id:type_name -> backend.operation.DataSource.Kind
|
|
|
- 11, // 2: backend.operation.AddFeedFormulaRequest.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
- 11, // 3: backend.operation.AddFeedFormulaRequest.is_modify:type_name -> backend.operation.IsShow.Kind
|
|
|
- 11, // 4: backend.operation.SearchFeedFormulaRequest.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
- 12, // 5: backend.operation.SearchFeedFormulaRequest.pagination:type_name -> backend.operation.PaginationModel
|
|
|
+ 11, // 0: backend.operation.AddFeedFormulaRequest.cattle_category_id:type_name -> backend.operation.CattleCategoryParent.Kind
|
|
|
+ 12, // 1: backend.operation.AddFeedFormulaRequest.data_source_id:type_name -> backend.operation.DataSource.Kind
|
|
|
+ 13, // 2: backend.operation.AddFeedFormulaRequest.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
+ 13, // 3: backend.operation.AddFeedFormulaRequest.is_modify:type_name -> backend.operation.IsShow.Kind
|
|
|
+ 13, // 4: backend.operation.SearchFeedFormulaRequest.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
+ 14, // 5: backend.operation.SearchFeedFormulaRequest.pagination:type_name -> backend.operation.PaginationModel
|
|
|
3, // 6: backend.operation.SearchFeedFormulaListResponse.data:type_name -> backend.operation.SearchFeedFormulaListData
|
|
|
0, // 7: backend.operation.SearchFeedFormulaListData.list:type_name -> backend.operation.AddFeedFormulaRequest
|
|
|
- 11, // 8: backend.operation.IsShowModifyFeedFormula.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
- 8, // 9: backend.operation.UniqueID.data:type_name -> backend.operation.UniqueID.UniqueData
|
|
|
- 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
|
|
|
+ 13, // 8: backend.operation.IsShowModifyFeedFormula.is_show:type_name -> backend.operation.IsShow.Kind
|
|
|
+ 10, // 9: backend.operation.UniqueID.data:type_name -> backend.operation.UniqueID.UniqueData
|
|
|
+ 9, // 10: backend.operation.FeedFormulaUsageResponse.list:type_name -> backend.operation.FeedFormulaUsageList
|
|
|
+ 11, // [11:11] is the sub-list for method output_type
|
|
|
+ 11, // [11:11] is the sub-list for method input_type
|
|
|
+ 11, // [11:11] is the sub-list for extension type_name
|
|
|
+ 11, // [11:11] is the sub-list for extension extendee
|
|
|
+ 0, // [0:11] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
func init() { file_backend_operation_feed_formula_proto_init() }
|
|
@@ -984,6 +1122,30 @@ func file_backend_operation_feed_formula_proto_init() {
|
|
|
}
|
|
|
}
|
|
|
file_backend_operation_feed_formula_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*FeedFormulaUsageResponse); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_backend_operation_feed_formula_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*FeedFormulaUsageList); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_backend_operation_feed_formula_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*UniqueID_UniqueData); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
@@ -1002,7 +1164,7 @@ func file_backend_operation_feed_formula_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_backend_operation_feed_formula_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 9,
|
|
|
+ NumMessages: 11,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 0,
|
|
|
},
|