Browse Source

statistics: 混料类别和tmr名称2

Yi 1 year ago
parent
commit
a7835c3e4d

+ 17 - 0
backend/operation/feed_formula.proto

@@ -98,4 +98,21 @@ message FeedFormulaUsageList {
   string sprinkle_time = 8;                    // 撒料时间
   string stir_time = 9;                        // 搅拌延迟时间
   string last_edit_time = 10;                  // 最近一次修改配方时间
+}
+
+message PastureFeedFormulaUsageResponse {
+  int32 code = 1;
+  string msg = 2;
+  PastureData data = 3;
+}
+
+message PastureData {
+  string mixed_fodder_accurate_ratio = 3;      // 混料准确率
+  string mixed_fodder_correct_ratio = 4;       // 混料正确率
+  string sprinkle_fodder_accurate_ratio = 5;   // 撒料准确率
+  string sprinkle_fodder_correct_ratio = 6;    // 撒料正确率
+  string add_feed_time = 7;                    // 加料时间
+  string sprinkle_time = 8;                    // 撒料时间
+  string stir_time = 9;                        // 搅拌延迟时间
+  string last_edit_time = 10;                  // 最近一次修改配方时间
 }

+ 9 - 1
module/backend/dashboard_service.go

@@ -568,11 +568,19 @@ func (s *StoreEntry) SprinkleFeedTime(ctx context.Context, req *operationPb.Spri
 }
 
 func (s *StoreEntry) FeedMixedAndTmrName(ctx context.Context, req *operationPb.MixedCategoryTmrName) (*model.PastureCommonResponse, error) {
+	groupPasture, err := s.GetGroupPastureListById(ctx, int64(req.PastureId))
+	if err != nil {
+		return nil, xerr.WithStack(err)
+	}
+	pastureId := req.PastureId
+	if groupPasture.PastureId > 0 {
+		pastureId = int32(groupPasture.PastureId)
+	}
 	body := &model.PastureCommonRequest{
 		Name:       req.ApiName,
 		ReturnType: "Map",
 		ParamMaps: &model.MixedCategoryTmrNameParams{
-			PastureId: fmt.Sprintf("%d", req.PastureId),
+			PastureId: fmt.Sprintf("%d", pastureId),
 			StartTime: req.StartTime,
 			EndTime:   req.EndTime,
 		},

+ 8 - 1
module/backend/feed_service.go

@@ -414,12 +414,19 @@ func (s *StoreEntry) FeedFormulaUsage(ctx context.Context, req *operationPb.Feed
 				return
 			}
 
-			response := &operationPb.FeedFormulaUsageList{}
+			response := &operationPb.PastureFeedFormulaUsageResponse{}
 			if _, err = s.PastureHttpClient(ctx, model.FeedUsageURl, groupDetail.Id, nil, response); err != nil {
 				zaplog.Error("FeedFormulaUsage", zap.Any("PastureDetailById", err))
 				return
 			}
 
+			if response.Code == http.StatusOK {
+
+			} else {
+				zaplog.Error("FeedFormulaUsage-http", zap.Any("response", response))
+				return
+			}
+
 		}(list)
 	}
 

+ 262 - 35
proto/go/backend/operation/feed_formula.pb.go

@@ -856,6 +856,172 @@ func (x *FeedFormulaUsageList) GetLastEditTime() string {
 	return ""
 }
 
+type PastureFeedFormulaUsageResponse struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Code int32        `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
+	Msg  string       `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
+	Data *PastureData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
+}
+
+func (x *PastureFeedFormulaUsageResponse) Reset() {
+	*x = PastureFeedFormulaUsageResponse{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_backend_operation_feed_formula_proto_msgTypes[10]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *PastureFeedFormulaUsageResponse) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PastureFeedFormulaUsageResponse) ProtoMessage() {}
+
+func (x *PastureFeedFormulaUsageResponse) ProtoReflect() protoreflect.Message {
+	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 {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use PastureFeedFormulaUsageResponse.ProtoReflect.Descriptor instead.
+func (*PastureFeedFormulaUsageResponse) Descriptor() ([]byte, []int) {
+	return file_backend_operation_feed_formula_proto_rawDescGZIP(), []int{10}
+}
+
+func (x *PastureFeedFormulaUsageResponse) GetCode() int32 {
+	if x != nil {
+		return x.Code
+	}
+	return 0
+}
+
+func (x *PastureFeedFormulaUsageResponse) GetMsg() string {
+	if x != nil {
+		return x.Msg
+	}
+	return ""
+}
+
+func (x *PastureFeedFormulaUsageResponse) GetData() *PastureData {
+	if x != nil {
+		return x.Data
+	}
+	return nil
+}
+
+type PastureData struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	MixedFodderAccurateRatio    string `protobuf:"bytes,3,opt,name=mixed_fodder_accurate_ratio,json=mixedFodderAccurateRatio,proto3" json:"mixed_fodder_accurate_ratio,omitempty"`          // 混料准确率
+	MixedFodderCorrectRatio     string `protobuf:"bytes,4,opt,name=mixed_fodder_correct_ratio,json=mixedFodderCorrectRatio,proto3" json:"mixed_fodder_correct_ratio,omitempty"`             // 混料正确率
+	SprinkleFodderAccurateRatio string `protobuf:"bytes,5,opt,name=sprinkle_fodder_accurate_ratio,json=sprinkleFodderAccurateRatio,proto3" json:"sprinkle_fodder_accurate_ratio,omitempty"` // 撒料准确率
+	SprinkleFodderCorrectRatio  string `protobuf:"bytes,6,opt,name=sprinkle_fodder_correct_ratio,json=sprinkleFodderCorrectRatio,proto3" json:"sprinkle_fodder_correct_ratio,omitempty"`    // 撒料正确率
+	AddFeedTime                 string `protobuf:"bytes,7,opt,name=add_feed_time,json=addFeedTime,proto3" json:"add_feed_time,omitempty"`                                                   // 加料时间
+	SprinkleTime                string `protobuf:"bytes,8,opt,name=sprinkle_time,json=sprinkleTime,proto3" json:"sprinkle_time,omitempty"`                                                  // 撒料时间
+	StirTime                    string `protobuf:"bytes,9,opt,name=stir_time,json=stirTime,proto3" json:"stir_time,omitempty"`                                                              // 搅拌延迟时间
+	LastEditTime                string `protobuf:"bytes,10,opt,name=last_edit_time,json=lastEditTime,proto3" json:"last_edit_time,omitempty"`                                               // 最近一次修改配方时间
+}
+
+func (x *PastureData) Reset() {
+	*x = PastureData{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_backend_operation_feed_formula_proto_msgTypes[11]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *PastureData) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PastureData) ProtoMessage() {}
+
+func (x *PastureData) ProtoReflect() protoreflect.Message {
+	mi := &file_backend_operation_feed_formula_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 PastureData.ProtoReflect.Descriptor instead.
+func (*PastureData) Descriptor() ([]byte, []int) {
+	return file_backend_operation_feed_formula_proto_rawDescGZIP(), []int{11}
+}
+
+func (x *PastureData) GetMixedFodderAccurateRatio() string {
+	if x != nil {
+		return x.MixedFodderAccurateRatio
+	}
+	return ""
+}
+
+func (x *PastureData) GetMixedFodderCorrectRatio() string {
+	if x != nil {
+		return x.MixedFodderCorrectRatio
+	}
+	return ""
+}
+
+func (x *PastureData) GetSprinkleFodderAccurateRatio() string {
+	if x != nil {
+		return x.SprinkleFodderAccurateRatio
+	}
+	return ""
+}
+
+func (x *PastureData) GetSprinkleFodderCorrectRatio() string {
+	if x != nil {
+		return x.SprinkleFodderCorrectRatio
+	}
+	return ""
+}
+
+func (x *PastureData) GetAddFeedTime() string {
+	if x != nil {
+		return x.AddFeedTime
+	}
+	return ""
+}
+
+func (x *PastureData) GetSprinkleTime() string {
+	if x != nil {
+		return x.SprinkleTime
+	}
+	return ""
+}
+
+func (x *PastureData) GetStirTime() string {
+	if x != nil {
+		return x.StirTime
+	}
+	return ""
+}
+
+func (x *PastureData) GetLastEditTime() string {
+	if x != nil {
+		return x.LastEditTime
+	}
+	return ""
+}
+
 type UniqueID_UniqueData struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -867,7 +1033,7 @@ type UniqueID_UniqueData struct {
 func (x *UniqueID_UniqueData) Reset() {
 	*x = UniqueID_UniqueData{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_backend_operation_feed_formula_proto_msgTypes[10]
+		mi := &file_backend_operation_feed_formula_proto_msgTypes[12]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -880,7 +1046,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[10]
+	mi := &file_backend_operation_feed_formula_proto_msgTypes[12]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1071,9 +1237,43 @@ var file_backend_operation_feed_formula_proto_rawDesc = []byte{
 	0x74, 0x69, 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
 	0x73, 0x74, 0x69, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6c, 0x61, 0x73, 0x74,
 	0x5f, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,
-	0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x64, 0x69, 0x74, 0x54, 0x69, 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,
+	0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x64, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x7b,
+	0x0a, 0x1f, 0x50, 0x61, 0x73, 0x74, 0x75, 0x72, 0x65, 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, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
+	0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01,
+	0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x32, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
+	0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e,
+	0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x73, 0x74, 0x75, 0x72,
+	0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x9d, 0x03, 0x0a, 0x0b,
+	0x50, 0x61, 0x73, 0x74, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x3d, 0x0a, 0x1b, 0x6d,
+	0x69, 0x78, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x64, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x75,
+	0x72, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x18, 0x6d, 0x69, 0x78, 0x65, 0x64, 0x46, 0x6f, 0x64, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63,
+	0x75, 0x72, 0x61, 0x74, 0x65, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x3b, 0x0a, 0x1a, 0x6d, 0x69,
+	0x78, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x64, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x72, 0x72, 0x65,
+	0x63, 0x74, 0x5f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17,
+	0x6d, 0x69, 0x78, 0x65, 0x64, 0x46, 0x6f, 0x64, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x72, 0x72, 0x65,
+	0x63, 0x74, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x43, 0x0a, 0x1e, 0x73, 0x70, 0x72, 0x69, 0x6e,
+	0x6b, 0x6c, 0x65, 0x5f, 0x66, 0x6f, 0x64, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x75, 0x72,
+	0x61, 0x74, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x1b, 0x73, 0x70, 0x72, 0x69, 0x6e, 0x6b, 0x6c, 0x65, 0x46, 0x6f, 0x64, 0x64, 0x65, 0x72, 0x41,
+	0x63, 0x63, 0x75, 0x72, 0x61, 0x74, 0x65, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x41, 0x0a, 0x1d,
+	0x73, 0x70, 0x72, 0x69, 0x6e, 0x6b, 0x6c, 0x65, 0x5f, 0x66, 0x6f, 0x64, 0x64, 0x65, 0x72, 0x5f,
+	0x63, 0x6f, 0x72, 0x72, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x06, 0x20,
+	0x01, 0x28, 0x09, 0x52, 0x1a, 0x73, 0x70, 0x72, 0x69, 0x6e, 0x6b, 0x6c, 0x65, 0x46, 0x6f, 0x64,
+	0x64, 0x65, 0x72, 0x43, 0x6f, 0x72, 0x72, 0x65, 0x63, 0x74, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x12,
+	0x22, 0x0a, 0x0d, 0x61, 0x64, 0x64, 0x5f, 0x66, 0x65, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65,
+	0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x64, 0x64, 0x46, 0x65, 0x65, 0x64, 0x54,
+	0x69, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x70, 0x72, 0x69, 0x6e, 0x6b, 0x6c, 0x65, 0x5f,
+	0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x70, 0x72, 0x69,
+	0x6e, 0x6b, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x69, 0x72,
+	0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x69,
+	0x72, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x64,
+	0x69, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c,
+	0x61, 0x73, 0x74, 0x45, 0x64, 0x69, 0x74, 0x54, 0x69, 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 (
@@ -1088,41 +1288,44 @@ 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, 11)
+var file_backend_operation_feed_formula_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
 var file_backend_operation_feed_formula_proto_goTypes = []interface{}{
-	(*AddFeedFormulaRequest)(nil),         // 0: backend.operation.AddFeedFormulaRequest
-	(*SearchFeedFormulaRequest)(nil),      // 1: backend.operation.SearchFeedFormulaRequest
-	(*SearchFeedFormulaListResponse)(nil), // 2: backend.operation.SearchFeedFormulaListResponse
-	(*SearchFeedFormulaListData)(nil),     // 3: backend.operation.SearchFeedFormulaListData
-	(*IsShowModifyFeedFormula)(nil),       // 4: backend.operation.IsShowModifyFeedFormula
-	(*UniqueID)(nil),                      // 5: backend.operation.UniqueID
-	(*DistributeFeedFormulaRequest)(nil),  // 6: backend.operation.DistributeFeedFormulaRequest
-	(*FeedFormulaUsageRequest)(nil),       // 7: backend.operation.FeedFormulaUsageRequest
-	(*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
+	(*AddFeedFormulaRequest)(nil),           // 0: backend.operation.AddFeedFormulaRequest
+	(*SearchFeedFormulaRequest)(nil),        // 1: backend.operation.SearchFeedFormulaRequest
+	(*SearchFeedFormulaListResponse)(nil),   // 2: backend.operation.SearchFeedFormulaListResponse
+	(*SearchFeedFormulaListData)(nil),       // 3: backend.operation.SearchFeedFormulaListData
+	(*IsShowModifyFeedFormula)(nil),         // 4: backend.operation.IsShowModifyFeedFormula
+	(*UniqueID)(nil),                        // 5: backend.operation.UniqueID
+	(*DistributeFeedFormulaRequest)(nil),    // 6: backend.operation.DistributeFeedFormulaRequest
+	(*FeedFormulaUsageRequest)(nil),         // 7: backend.operation.FeedFormulaUsageRequest
+	(*FeedFormulaUsageResponse)(nil),        // 8: backend.operation.FeedFormulaUsageResponse
+	(*FeedFormulaUsageList)(nil),            // 9: backend.operation.FeedFormulaUsageList
+	(*PastureFeedFormulaUsageResponse)(nil), // 10: backend.operation.PastureFeedFormulaUsageResponse
+	(*PastureData)(nil),                     // 11: backend.operation.PastureData
+	(*UniqueID_UniqueData)(nil),             // 12: backend.operation.UniqueID.UniqueData
+	(CattleCategoryParent_Kind)(0),          // 13: backend.operation.CattleCategoryParent.Kind
+	(DataSource_Kind)(0),                    // 14: backend.operation.DataSource.Kind
+	(IsShow_Kind)(0),                        // 15: backend.operation.IsShow.Kind
+	(*PaginationModel)(nil),                 // 16: backend.operation.PaginationModel
 }
 var file_backend_operation_feed_formula_proto_depIdxs = []int32{
-	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
+	13, // 0: backend.operation.AddFeedFormulaRequest.cattle_category_id:type_name -> backend.operation.CattleCategoryParent.Kind
+	14, // 1: backend.operation.AddFeedFormulaRequest.data_source_id:type_name -> backend.operation.DataSource.Kind
+	15, // 2: backend.operation.AddFeedFormulaRequest.is_show:type_name -> backend.operation.IsShow.Kind
+	15, // 3: backend.operation.AddFeedFormulaRequest.is_modify:type_name -> backend.operation.IsShow.Kind
+	15, // 4: backend.operation.SearchFeedFormulaRequest.is_show:type_name -> backend.operation.IsShow.Kind
+	16, // 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
-	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
+	15, // 8: backend.operation.IsShowModifyFeedFormula.is_show:type_name -> backend.operation.IsShow.Kind
+	12, // 9: backend.operation.UniqueID.data:type_name -> backend.operation.UniqueID.UniqueData
 	9,  // 10: backend.operation.FeedFormulaUsageResponse.data: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
+	11, // 11: backend.operation.PastureFeedFormulaUsageResponse.data:type_name -> backend.operation.PastureData
+	12, // [12:12] is the sub-list for method output_type
+	12, // [12:12] is the sub-list for method input_type
+	12, // [12:12] is the sub-list for extension type_name
+	12, // [12:12] is the sub-list for extension extendee
+	0,  // [0:12] is the sub-list for field type_name
 }
 
 func init() { file_backend_operation_feed_formula_proto_init() }
@@ -1254,6 +1457,30 @@ func file_backend_operation_feed_formula_proto_init() {
 			}
 		}
 		file_backend_operation_feed_formula_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*PastureFeedFormulaUsageResponse); 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[11].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*PastureData); 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[12].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*UniqueID_UniqueData); i {
 			case 0:
 				return &v.state
@@ -1272,7 +1499,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:   11,
+			NumMessages:   13,
 			NumExtensions: 0,
 			NumServices:   0,
 		},