StatisticService.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: kpt-tmr-group/module/backend (interfaces: StatisticService)
  3. // Package kptservicemock is a generated GoMock package.
  4. package kptservicemock
  5. import (
  6. bytes "bytes"
  7. context "context"
  8. model "kpt-tmr-group/model"
  9. operationPb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/operation"
  10. reflect "reflect"
  11. gomock "github.com/golang/mock/gomock"
  12. )
  13. // MockStatisticService is a mock of StatisticService interface.
  14. type MockStatisticService struct {
  15. ctrl *gomock.Controller
  16. recorder *MockStatisticServiceMockRecorder
  17. }
  18. // MockStatisticServiceMockRecorder is the mock recorder for MockStatisticService.
  19. type MockStatisticServiceMockRecorder struct {
  20. mock *MockStatisticService
  21. }
  22. // NewMockStatisticService creates a new mock instance.
  23. func NewMockStatisticService(ctrl *gomock.Controller) *MockStatisticService {
  24. mock := &MockStatisticService{ctrl: ctrl}
  25. mock.recorder = &MockStatisticServiceMockRecorder{mock}
  26. return mock
  27. }
  28. // EXPECT returns an object that allows the caller to indicate expected use.
  29. func (m *MockStatisticService) EXPECT() *MockStatisticServiceMockRecorder {
  30. return m.recorder
  31. }
  32. // AnalysisMixedSprinkleDetail mocks base method.
  33. func (m *MockStatisticService) AnalysisMixedSprinkleDetail(arg0 context.Context, arg1 *operationPb.ProcessMixedSprinkleDetailRequest) (*model.PastureCommonResponse, error) {
  34. m.ctrl.T.Helper()
  35. ret := m.ctrl.Call(m, "AnalysisMixedSprinkleDetail", arg0, arg1)
  36. ret0, _ := ret[0].(*model.PastureCommonResponse)
  37. ret1, _ := ret[1].(error)
  38. return ret0, ret1
  39. }
  40. // AnalysisMixedSprinkleDetail indicates an expected call of AnalysisMixedSprinkleDetail.
  41. func (mr *MockStatisticServiceMockRecorder) AnalysisMixedSprinkleDetail(arg0, arg1 interface{}) *gomock.Call {
  42. mr.mock.ctrl.T.Helper()
  43. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AnalysisMixedSprinkleDetail", reflect.TypeOf((*MockStatisticService)(nil).AnalysisMixedSprinkleDetail), arg0, arg1)
  44. }
  45. // CowsAnalysis mocks base method.
  46. func (m *MockStatisticService) CowsAnalysis(arg0 context.Context, arg1 *operationPb.CowsAnalysisRequest) (*model.PastureCommonResponse, error) {
  47. m.ctrl.T.Helper()
  48. ret := m.ctrl.Call(m, "CowsAnalysis", arg0, arg1)
  49. ret0, _ := ret[0].(*model.PastureCommonResponse)
  50. ret1, _ := ret[1].(error)
  51. return ret0, ret1
  52. }
  53. // CowsAnalysis indicates an expected call of CowsAnalysis.
  54. func (mr *MockStatisticServiceMockRecorder) CowsAnalysis(arg0, arg1 interface{}) *gomock.Call {
  55. mr.mock.ctrl.T.Helper()
  56. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CowsAnalysis", reflect.TypeOf((*MockStatisticService)(nil).CowsAnalysis), arg0, arg1)
  57. }
  58. // ExecutionTime mocks base method.
  59. func (m *MockStatisticService) ExecutionTime(arg0 context.Context, arg1 *operationPb.SearchAnalysisAccuracyRequest) (*model.ExecTimeResponse, error) {
  60. m.ctrl.T.Helper()
  61. ret := m.ctrl.Call(m, "ExecutionTime", arg0, arg1)
  62. ret0, _ := ret[0].(*model.ExecTimeResponse)
  63. ret1, _ := ret[1].(error)
  64. return ret0, ret1
  65. }
  66. // ExecutionTime indicates an expected call of ExecutionTime.
  67. func (mr *MockStatisticServiceMockRecorder) ExecutionTime(arg0, arg1 interface{}) *gomock.Call {
  68. mr.mock.ctrl.T.Helper()
  69. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecutionTime", reflect.TypeOf((*MockStatisticService)(nil).ExecutionTime), arg0, arg1)
  70. }
  71. // FeedChartStatistics mocks base method.
  72. func (m *MockStatisticService) FeedChartStatistics(arg0 context.Context, arg1 *operationPb.FeedChartStatisticsRequest) (*model.PastureCommonResponse, error) {
  73. m.ctrl.T.Helper()
  74. ret := m.ctrl.Call(m, "FeedChartStatistics", arg0, arg1)
  75. ret0, _ := ret[0].(*model.PastureCommonResponse)
  76. ret1, _ := ret[1].(error)
  77. return ret0, ret1
  78. }
  79. // FeedChartStatistics indicates an expected call of FeedChartStatistics.
  80. func (mr *MockStatisticServiceMockRecorder) FeedChartStatistics(arg0, arg1 interface{}) *gomock.Call {
  81. mr.mock.ctrl.T.Helper()
  82. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeedChartStatistics", reflect.TypeOf((*MockStatisticService)(nil).FeedChartStatistics), arg0, arg1)
  83. }
  84. // FeedMixedAndTmrName mocks base method.
  85. func (m *MockStatisticService) FeedMixedAndTmrName(arg0 context.Context, arg1 *operationPb.MixedCategoryTmrName) (*model.PastureCommonResponse, error) {
  86. m.ctrl.T.Helper()
  87. ret := m.ctrl.Call(m, "FeedMixedAndTmrName", arg0, arg1)
  88. ret0, _ := ret[0].(*model.PastureCommonResponse)
  89. ret1, _ := ret[1].(error)
  90. return ret0, ret1
  91. }
  92. // FeedMixedAndTmrName indicates an expected call of FeedMixedAndTmrName.
  93. func (mr *MockStatisticServiceMockRecorder) FeedMixedAndTmrName(arg0, arg1 interface{}) *gomock.Call {
  94. mr.mock.ctrl.T.Helper()
  95. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeedMixedAndTmrName", reflect.TypeOf((*MockStatisticService)(nil).FeedMixedAndTmrName), arg0, arg1)
  96. }
  97. // GetDataByName mocks base method.
  98. func (m *MockStatisticService) GetDataByName(arg0 context.Context, arg1 *operationPb.GetDataByNameRequest) (*model.PastureCommonResponse, error) {
  99. m.ctrl.T.Helper()
  100. ret := m.ctrl.Call(m, "GetDataByName", arg0, arg1)
  101. ret0, _ := ret[0].(*model.PastureCommonResponse)
  102. ret1, _ := ret[1].(error)
  103. return ret0, ret1
  104. }
  105. // GetDataByName indicates an expected call of GetDataByName.
  106. func (mr *MockStatisticServiceMockRecorder) GetDataByName(arg0, arg1 interface{}) *gomock.Call {
  107. mr.mock.ctrl.T.Helper()
  108. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataByName", reflect.TypeOf((*MockStatisticService)(nil).GetDataByName), arg0, arg1)
  109. }
  110. // GetTrainNumber mocks base method.
  111. func (m *MockStatisticService) GetTrainNumber(arg0 context.Context, arg1 *operationPb.TrainNumberRequest) (*operationPb.TrainNumberResponse, error) {
  112. m.ctrl.T.Helper()
  113. ret := m.ctrl.Call(m, "GetTrainNumber", arg0, arg1)
  114. ret0, _ := ret[0].(*operationPb.TrainNumberResponse)
  115. ret1, _ := ret[1].(error)
  116. return ret0, ret1
  117. }
  118. // GetTrainNumber indicates an expected call of GetTrainNumber.
  119. func (mr *MockStatisticServiceMockRecorder) GetTrainNumber(arg0, arg1 interface{}) *gomock.Call {
  120. mr.mock.ctrl.T.Helper()
  121. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTrainNumber", reflect.TypeOf((*MockStatisticService)(nil).GetTrainNumber), arg0, arg1)
  122. }
  123. // InventoryStatisticsExcelExport mocks base method.
  124. func (m *MockStatisticService) InventoryStatisticsExcelExport(arg0 context.Context, arg1 *operationPb.SearchInventoryStatisticsRequest) (*bytes.Buffer, error) {
  125. m.ctrl.T.Helper()
  126. ret := m.ctrl.Call(m, "InventoryStatisticsExcelExport", arg0, arg1)
  127. ret0, _ := ret[0].(*bytes.Buffer)
  128. ret1, _ := ret[1].(error)
  129. return ret0, ret1
  130. }
  131. // InventoryStatisticsExcelExport indicates an expected call of InventoryStatisticsExcelExport.
  132. func (mr *MockStatisticServiceMockRecorder) InventoryStatisticsExcelExport(arg0, arg1 interface{}) *gomock.Call {
  133. mr.mock.ctrl.T.Helper()
  134. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryStatisticsExcelExport", reflect.TypeOf((*MockStatisticService)(nil).InventoryStatisticsExcelExport), arg0, arg1)
  135. }
  136. // SearchAccuracyAggStatistics mocks base method.
  137. func (m *MockStatisticService) SearchAccuracyAggStatistics(arg0 context.Context, arg1 *operationPb.AccuracyAggStatisticsRequest) (*model.PastureCommonResponse, error) {
  138. m.ctrl.T.Helper()
  139. ret := m.ctrl.Call(m, "SearchAccuracyAggStatistics", arg0, arg1)
  140. ret0, _ := ret[0].(*model.PastureCommonResponse)
  141. ret1, _ := ret[1].(error)
  142. return ret0, ret1
  143. }
  144. // SearchAccuracyAggStatistics indicates an expected call of SearchAccuracyAggStatistics.
  145. func (mr *MockStatisticServiceMockRecorder) SearchAccuracyAggStatistics(arg0, arg1 interface{}) *gomock.Call {
  146. mr.mock.ctrl.T.Helper()
  147. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchAccuracyAggStatistics", reflect.TypeOf((*MockStatisticService)(nil).SearchAccuracyAggStatistics), arg0, arg1)
  148. }
  149. // SearchAnalysisAccuracy mocks base method.
  150. func (m *MockStatisticService) SearchAnalysisAccuracy(arg0 context.Context, arg1 *operationPb.SearchAnalysisAccuracyRequest) (*model.SearchAnalysisAccuracyResponse, error) {
  151. m.ctrl.T.Helper()
  152. ret := m.ctrl.Call(m, "SearchAnalysisAccuracy", arg0, arg1)
  153. ret0, _ := ret[0].(*model.SearchAnalysisAccuracyResponse)
  154. ret1, _ := ret[1].(error)
  155. return ret0, ret1
  156. }
  157. // SearchAnalysisAccuracy indicates an expected call of SearchAnalysisAccuracy.
  158. func (mr *MockStatisticServiceMockRecorder) SearchAnalysisAccuracy(arg0, arg1 interface{}) *gomock.Call {
  159. mr.mock.ctrl.T.Helper()
  160. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchAnalysisAccuracy", reflect.TypeOf((*MockStatisticService)(nil).SearchAnalysisAccuracy), arg0, arg1)
  161. }
  162. // SearchFeedStatistics mocks base method.
  163. func (m *MockStatisticService) SearchFeedStatistics(arg0 context.Context, arg1 *operationPb.SearchFeedStatisticsRequest) (*model.FeedStatisticsResponse, error) {
  164. m.ctrl.T.Helper()
  165. ret := m.ctrl.Call(m, "SearchFeedStatistics", arg0, arg1)
  166. ret0, _ := ret[0].(*model.FeedStatisticsResponse)
  167. ret1, _ := ret[1].(error)
  168. return ret0, ret1
  169. }
  170. // SearchFeedStatistics indicates an expected call of SearchFeedStatistics.
  171. func (mr *MockStatisticServiceMockRecorder) SearchFeedStatistics(arg0, arg1 interface{}) *gomock.Call {
  172. mr.mock.ctrl.T.Helper()
  173. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchFeedStatistics", reflect.TypeOf((*MockStatisticService)(nil).SearchFeedStatistics), arg0, arg1)
  174. }
  175. // SearchFormulaEstimateList mocks base method.
  176. func (m *MockStatisticService) SearchFormulaEstimateList(arg0 context.Context, arg1 *operationPb.SearchFormulaEstimateRequest) (*model.PastureCommonResponse, error) {
  177. m.ctrl.T.Helper()
  178. ret := m.ctrl.Call(m, "SearchFormulaEstimateList", arg0, arg1)
  179. ret0, _ := ret[0].(*model.PastureCommonResponse)
  180. ret1, _ := ret[1].(error)
  181. return ret0, ret1
  182. }
  183. // SearchFormulaEstimateList indicates an expected call of SearchFormulaEstimateList.
  184. func (mr *MockStatisticServiceMockRecorder) SearchFormulaEstimateList(arg0, arg1 interface{}) *gomock.Call {
  185. mr.mock.ctrl.T.Helper()
  186. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchFormulaEstimateList", reflect.TypeOf((*MockStatisticService)(nil).SearchFormulaEstimateList), arg0, arg1)
  187. }
  188. // SearchInventoryStatistics mocks base method.
  189. func (m *MockStatisticService) SearchInventoryStatistics(arg0 context.Context, arg1 *operationPb.SearchInventoryStatisticsRequest) (*model.PastureCommonResponse, error) {
  190. m.ctrl.T.Helper()
  191. ret := m.ctrl.Call(m, "SearchInventoryStatistics", arg0, arg1)
  192. ret0, _ := ret[0].(*model.PastureCommonResponse)
  193. ret1, _ := ret[1].(error)
  194. return ret0, ret1
  195. }
  196. // SearchInventoryStatistics indicates an expected call of SearchInventoryStatistics.
  197. func (mr *MockStatisticServiceMockRecorder) SearchInventoryStatistics(arg0, arg1 interface{}) *gomock.Call {
  198. mr.mock.ctrl.T.Helper()
  199. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchInventoryStatistics", reflect.TypeOf((*MockStatisticService)(nil).SearchInventoryStatistics), arg0, arg1)
  200. }
  201. // SearchMixFeedStatistics mocks base method.
  202. func (m *MockStatisticService) SearchMixFeedStatistics(arg0 context.Context, arg1 *operationPb.MixFeedStatisticsRequest) (*model.PastureCommonResponse, error) {
  203. m.ctrl.T.Helper()
  204. ret := m.ctrl.Call(m, "SearchMixFeedStatistics", arg0, arg1)
  205. ret0, _ := ret[0].(*model.PastureCommonResponse)
  206. ret1, _ := ret[1].(error)
  207. return ret0, ret1
  208. }
  209. // SearchMixFeedStatistics indicates an expected call of SearchMixFeedStatistics.
  210. func (mr *MockStatisticServiceMockRecorder) SearchMixFeedStatistics(arg0, arg1 interface{}) *gomock.Call {
  211. mr.mock.ctrl.T.Helper()
  212. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchMixFeedStatistics", reflect.TypeOf((*MockStatisticService)(nil).SearchMixFeedStatistics), arg0, arg1)
  213. }
  214. // SearchPriceStatistics mocks base method.
  215. func (m *MockStatisticService) SearchPriceStatistics(arg0 context.Context, arg1 *operationPb.SearchPriceStatisticsRequest) (*model.PastureCommonResponse, error) {
  216. m.ctrl.T.Helper()
  217. ret := m.ctrl.Call(m, "SearchPriceStatistics", arg0, arg1)
  218. ret0, _ := ret[0].(*model.PastureCommonResponse)
  219. ret1, _ := ret[1].(error)
  220. return ret0, ret1
  221. }
  222. // SearchPriceStatistics indicates an expected call of SearchPriceStatistics.
  223. func (mr *MockStatisticServiceMockRecorder) SearchPriceStatistics(arg0, arg1 interface{}) *gomock.Call {
  224. mr.mock.ctrl.T.Helper()
  225. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchPriceStatistics", reflect.TypeOf((*MockStatisticService)(nil).SearchPriceStatistics), arg0, arg1)
  226. }
  227. // SearchProcessAnalysis mocks base method.
  228. func (m *MockStatisticService) SearchProcessAnalysis(arg0 context.Context, arg1 *operationPb.ProcessAnalysisRequest) (*model.PastureCommonResponse, error) {
  229. m.ctrl.T.Helper()
  230. ret := m.ctrl.Call(m, "SearchProcessAnalysis", arg0, arg1)
  231. ret0, _ := ret[0].(*model.PastureCommonResponse)
  232. ret1, _ := ret[1].(error)
  233. return ret0, ret1
  234. }
  235. // SearchProcessAnalysis indicates an expected call of SearchProcessAnalysis.
  236. func (mr *MockStatisticServiceMockRecorder) SearchProcessAnalysis(arg0, arg1 interface{}) *gomock.Call {
  237. mr.mock.ctrl.T.Helper()
  238. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchProcessAnalysis", reflect.TypeOf((*MockStatisticService)(nil).SearchProcessAnalysis), arg0, arg1)
  239. }
  240. // SearchSprinkleStatistics mocks base method.
  241. func (m *MockStatisticService) SearchSprinkleStatistics(arg0 context.Context, arg1 *operationPb.SprinkleStatisticsRequest) (*model.PastureCommonResponse, error) {
  242. m.ctrl.T.Helper()
  243. ret := m.ctrl.Call(m, "SearchSprinkleStatistics", arg0, arg1)
  244. ret0, _ := ret[0].(*model.PastureCommonResponse)
  245. ret1, _ := ret[1].(error)
  246. return ret0, ret1
  247. }
  248. // SearchSprinkleStatistics indicates an expected call of SearchSprinkleStatistics.
  249. func (mr *MockStatisticServiceMockRecorder) SearchSprinkleStatistics(arg0, arg1 interface{}) *gomock.Call {
  250. mr.mock.ctrl.T.Helper()
  251. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchSprinkleStatistics", reflect.TypeOf((*MockStatisticService)(nil).SearchSprinkleStatistics), arg0, arg1)
  252. }
  253. // SearchUserMaterialsStatistics mocks base method.
  254. func (m *MockStatisticService) SearchUserMaterialsStatistics(arg0 context.Context, arg1 *operationPb.SearchUserMaterialsStatisticsRequest) (*model.PastureCommonResponse, error) {
  255. m.ctrl.T.Helper()
  256. ret := m.ctrl.Call(m, "SearchUserMaterialsStatistics", arg0, arg1)
  257. ret0, _ := ret[0].(*model.PastureCommonResponse)
  258. ret1, _ := ret[1].(error)
  259. return ret0, ret1
  260. }
  261. // SearchUserMaterialsStatistics indicates an expected call of SearchUserMaterialsStatistics.
  262. func (mr *MockStatisticServiceMockRecorder) SearchUserMaterialsStatistics(arg0, arg1 interface{}) *gomock.Call {
  263. mr.mock.ctrl.T.Helper()
  264. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchUserMaterialsStatistics", reflect.TypeOf((*MockStatisticService)(nil).SearchUserMaterialsStatistics), arg0, arg1)
  265. }
  266. // SprinkleFeedTime mocks base method.
  267. func (m *MockStatisticService) SprinkleFeedTime(arg0 context.Context, arg1 *operationPb.SprinkleFeedTimeRequest) (*model.SprinkleFeedTimeResponse, error) {
  268. m.ctrl.T.Helper()
  269. ret := m.ctrl.Call(m, "SprinkleFeedTime", arg0, arg1)
  270. ret0, _ := ret[0].(*model.SprinkleFeedTimeResponse)
  271. ret1, _ := ret[1].(error)
  272. return ret0, ret1
  273. }
  274. // SprinkleFeedTime indicates an expected call of SprinkleFeedTime.
  275. func (mr *MockStatisticServiceMockRecorder) SprinkleFeedTime(arg0, arg1 interface{}) *gomock.Call {
  276. mr.mock.ctrl.T.Helper()
  277. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SprinkleFeedTime", reflect.TypeOf((*MockStatisticService)(nil).SprinkleFeedTime), arg0, arg1)
  278. }
  279. // TopPasture mocks base method.
  280. func (m *MockStatisticService) TopPasture(arg0 context.Context, arg1 *operationPb.SearchAnalysisAccuracyRequest) (*model.GetPastureTopResponse, error) {
  281. m.ctrl.T.Helper()
  282. ret := m.ctrl.Call(m, "TopPasture", arg0, arg1)
  283. ret0, _ := ret[0].(*model.GetPastureTopResponse)
  284. ret1, _ := ret[1].(error)
  285. return ret0, ret1
  286. }
  287. // TopPasture indicates an expected call of TopPasture.
  288. func (mr *MockStatisticServiceMockRecorder) TopPasture(arg0, arg1 interface{}) *gomock.Call {
  289. mr.mock.ctrl.T.Helper()
  290. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TopPasture", reflect.TypeOf((*MockStatisticService)(nil).TopPasture), arg0, arg1)
  291. }
  292. // UserMaterialsStatisticsExcelExport mocks base method.
  293. func (m *MockStatisticService) UserMaterialsStatisticsExcelExport(arg0 context.Context, arg1 *operationPb.SearchUserMaterialsStatisticsRequest) (*bytes.Buffer, error) {
  294. m.ctrl.T.Helper()
  295. ret := m.ctrl.Call(m, "UserMaterialsStatisticsExcelExport", arg0, arg1)
  296. ret0, _ := ret[0].(*bytes.Buffer)
  297. ret1, _ := ret[1].(error)
  298. return ret0, ret1
  299. }
  300. // UserMaterialsStatisticsExcelExport indicates an expected call of UserMaterialsStatisticsExcelExport.
  301. func (mr *MockStatisticServiceMockRecorder) UserMaterialsStatisticsExcelExport(arg0, arg1 interface{}) *gomock.Call {
  302. mr.mock.ctrl.T.Helper()
  303. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserMaterialsStatisticsExcelExport", reflect.TypeOf((*MockStatisticService)(nil).UserMaterialsStatisticsExcelExport), arg0, arg1)
  304. }