|
@@ -739,7 +739,7 @@ func (s *StoreEntry) FeedMixedAndTmrName(ctx context.Context, req *operationPb.M
|
|
|
return response, nil
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) FeedTemplateHistory(ctx context.Context, req *operationPb.FeedTemplateHistoryRequest) (*model.PastureCommonResponse, error) {
|
|
|
+func (s *StoreEntry) FeedTemplateHistory(ctx context.Context, req *operationPb.FeedTemplateHistoryRequest) (*model.PastureFeedTemplateHistoryResponse, error) {
|
|
|
groupPasture, err := s.GetGroupPastureListById(ctx, int64(req.PastureId))
|
|
|
if err != nil {
|
|
|
return nil, xerr.WithStack(err)
|
|
@@ -755,7 +755,7 @@ func (s *StoreEntry) FeedTemplateHistory(ctx context.Context, req *operationPb.F
|
|
|
StartDate: req.StartTime,
|
|
|
EndDate: req.EndTime,
|
|
|
}
|
|
|
- response := &model.PastureCommonResponse{Data: &model.PastureCommonData{}}
|
|
|
+ response := &model.PastureFeedTemplateHistoryResponse{}
|
|
|
if err = s.PastureHttpClient(ctx, model.UrlFeedTemplateHistory, int64(req.PastureId), body, response); err != nil {
|
|
|
return nil, xerr.WithStack(err)
|
|
|
}
|