PastureService.go 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: kpt-tmr-group/module/backend (interfaces: PastureService)
  3. // Package kptservicemock is a generated GoMock package.
  4. package kptservicemock
  5. import (
  6. bytes "bytes"
  7. context "context"
  8. io "io"
  9. model "kpt-tmr-group/model"
  10. operationPb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/operation"
  11. reflect "reflect"
  12. gomock "github.com/golang/mock/gomock"
  13. )
  14. // MockPastureService is a mock of PastureService interface.
  15. type MockPastureService struct {
  16. ctrl *gomock.Controller
  17. recorder *MockPastureServiceMockRecorder
  18. }
  19. // MockPastureServiceMockRecorder is the mock recorder for MockPastureService.
  20. type MockPastureServiceMockRecorder struct {
  21. mock *MockPastureService
  22. }
  23. // NewMockPastureService creates a new mock instance.
  24. func NewMockPastureService(ctrl *gomock.Controller) *MockPastureService {
  25. mock := &MockPastureService{ctrl: ctrl}
  26. mock.recorder = &MockPastureServiceMockRecorder{mock}
  27. return mock
  28. }
  29. // EXPECT returns an object that allows the caller to indicate expected use.
  30. func (m *MockPastureService) EXPECT() *MockPastureServiceMockRecorder {
  31. return m.recorder
  32. }
  33. // AddCattleCategory mocks base method.
  34. func (m *MockPastureService) AddCattleCategory(arg0 context.Context, arg1 *operationPb.AddCattleCategoryRequest) error {
  35. m.ctrl.T.Helper()
  36. ret := m.ctrl.Call(m, "AddCattleCategory", arg0, arg1)
  37. ret0, _ := ret[0].(error)
  38. return ret0
  39. }
  40. // AddCattleCategory indicates an expected call of AddCattleCategory.
  41. func (mr *MockPastureServiceMockRecorder) AddCattleCategory(arg0, arg1 interface{}) *gomock.Call {
  42. mr.mock.ctrl.T.Helper()
  43. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddCattleCategory", reflect.TypeOf((*MockPastureService)(nil).AddCattleCategory), arg0, arg1)
  44. }
  45. // AddFeedByFeedFormula mocks base method.
  46. func (m *MockPastureService) AddFeedByFeedFormula(arg0 context.Context, arg1 *operationPb.GroupAddFeedFormulaDetail) error {
  47. m.ctrl.T.Helper()
  48. ret := m.ctrl.Call(m, "AddFeedByFeedFormula", arg0, arg1)
  49. ret0, _ := ret[0].(error)
  50. return ret0
  51. }
  52. // AddFeedByFeedFormula indicates an expected call of AddFeedByFeedFormula.
  53. func (mr *MockPastureServiceMockRecorder) AddFeedByFeedFormula(arg0, arg1 interface{}) *gomock.Call {
  54. mr.mock.ctrl.T.Helper()
  55. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddFeedByFeedFormula", reflect.TypeOf((*MockPastureService)(nil).AddFeedByFeedFormula), arg0, arg1)
  56. }
  57. // AddForageCategory mocks base method.
  58. func (m *MockPastureService) AddForageCategory(arg0 context.Context, arg1 *operationPb.AddForageCategoryRequest) error {
  59. m.ctrl.T.Helper()
  60. ret := m.ctrl.Call(m, "AddForageCategory", arg0, arg1)
  61. ret0, _ := ret[0].(error)
  62. return ret0
  63. }
  64. // AddForageCategory indicates an expected call of AddForageCategory.
  65. func (mr *MockPastureServiceMockRecorder) AddForageCategory(arg0, arg1 interface{}) *gomock.Call {
  66. mr.mock.ctrl.T.Helper()
  67. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddForageCategory", reflect.TypeOf((*MockPastureService)(nil).AddForageCategory), arg0, arg1)
  68. }
  69. // CancelDistributeFeedFormula mocks base method.
  70. func (m *MockPastureService) CancelDistributeFeedFormula(arg0 context.Context, arg1 *operationPb.DistributeFeedFormulaRequest) error {
  71. m.ctrl.T.Helper()
  72. ret := m.ctrl.Call(m, "CancelDistributeFeedFormula", arg0, arg1)
  73. ret0, _ := ret[0].(error)
  74. return ret0
  75. }
  76. // CancelDistributeFeedFormula indicates an expected call of CancelDistributeFeedFormula.
  77. func (mr *MockPastureServiceMockRecorder) CancelDistributeFeedFormula(arg0, arg1 interface{}) *gomock.Call {
  78. mr.mock.ctrl.T.Helper()
  79. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelDistributeFeedFormula", reflect.TypeOf((*MockPastureService)(nil).CancelDistributeFeedFormula), arg0, arg1)
  80. }
  81. // CreateFeedFormula mocks base method.
  82. func (m *MockPastureService) CreateFeedFormula(arg0 context.Context, arg1 *operationPb.AddFeedFormulaRequest) error {
  83. m.ctrl.T.Helper()
  84. ret := m.ctrl.Call(m, "CreateFeedFormula", arg0, arg1)
  85. ret0, _ := ret[0].(error)
  86. return ret0
  87. }
  88. // CreateFeedFormula indicates an expected call of CreateFeedFormula.
  89. func (mr *MockPastureServiceMockRecorder) CreateFeedFormula(arg0, arg1 interface{}) *gomock.Call {
  90. mr.mock.ctrl.T.Helper()
  91. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFeedFormula", reflect.TypeOf((*MockPastureService)(nil).CreateFeedFormula), arg0, arg1)
  92. }
  93. // CreateForage mocks base method.
  94. func (m *MockPastureService) CreateForage(arg0 context.Context, arg1 *operationPb.AddForageRequest) error {
  95. m.ctrl.T.Helper()
  96. ret := m.ctrl.Call(m, "CreateForage", arg0, arg1)
  97. ret0, _ := ret[0].(error)
  98. return ret0
  99. }
  100. // CreateForage indicates an expected call of CreateForage.
  101. func (mr *MockPastureServiceMockRecorder) CreateForage(arg0, arg1 interface{}) *gomock.Call {
  102. mr.mock.ctrl.T.Helper()
  103. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateForage", reflect.TypeOf((*MockPastureService)(nil).CreateForage), arg0, arg1)
  104. }
  105. // CreateGroupPasture mocks base method.
  106. func (m *MockPastureService) CreateGroupPasture(arg0 context.Context, arg1 *operationPb.AddPastureRequest) error {
  107. m.ctrl.T.Helper()
  108. ret := m.ctrl.Call(m, "CreateGroupPasture", arg0, arg1)
  109. ret0, _ := ret[0].(error)
  110. return ret0
  111. }
  112. // CreateGroupPasture indicates an expected call of CreateGroupPasture.
  113. func (mr *MockPastureServiceMockRecorder) CreateGroupPasture(arg0, arg1 interface{}) *gomock.Call {
  114. mr.mock.ctrl.T.Helper()
  115. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroupPasture", reflect.TypeOf((*MockPastureService)(nil).CreateGroupPasture), arg0, arg1)
  116. }
  117. // DeleteCattleCategory mocks base method.
  118. func (m *MockPastureService) DeleteCattleCategory(arg0 context.Context, arg1 int64) error {
  119. m.ctrl.T.Helper()
  120. ret := m.ctrl.Call(m, "DeleteCattleCategory", arg0, arg1)
  121. ret0, _ := ret[0].(error)
  122. return ret0
  123. }
  124. // DeleteCattleCategory indicates an expected call of DeleteCattleCategory.
  125. func (mr *MockPastureServiceMockRecorder) DeleteCattleCategory(arg0, arg1 interface{}) *gomock.Call {
  126. mr.mock.ctrl.T.Helper()
  127. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCattleCategory", reflect.TypeOf((*MockPastureService)(nil).DeleteCattleCategory), arg0, arg1)
  128. }
  129. // DeleteFeedFormula mocks base method.
  130. func (m *MockPastureService) DeleteFeedFormula(arg0 context.Context, arg1 int64) error {
  131. m.ctrl.T.Helper()
  132. ret := m.ctrl.Call(m, "DeleteFeedFormula", arg0, arg1)
  133. ret0, _ := ret[0].(error)
  134. return ret0
  135. }
  136. // DeleteFeedFormula indicates an expected call of DeleteFeedFormula.
  137. func (mr *MockPastureServiceMockRecorder) DeleteFeedFormula(arg0, arg1 interface{}) *gomock.Call {
  138. mr.mock.ctrl.T.Helper()
  139. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFeedFormula", reflect.TypeOf((*MockPastureService)(nil).DeleteFeedFormula), arg0, arg1)
  140. }
  141. // DeleteFeedFormulaDetail mocks base method.
  142. func (m *MockPastureService) DeleteFeedFormulaDetail(arg0 context.Context, arg1 *operationPb.GroupAddFeedFormulaDetail) error {
  143. m.ctrl.T.Helper()
  144. ret := m.ctrl.Call(m, "DeleteFeedFormulaDetail", arg0, arg1)
  145. ret0, _ := ret[0].(error)
  146. return ret0
  147. }
  148. // DeleteFeedFormulaDetail indicates an expected call of DeleteFeedFormulaDetail.
  149. func (mr *MockPastureServiceMockRecorder) DeleteFeedFormulaDetail(arg0, arg1 interface{}) *gomock.Call {
  150. mr.mock.ctrl.T.Helper()
  151. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFeedFormulaDetail", reflect.TypeOf((*MockPastureService)(nil).DeleteFeedFormulaDetail), arg0, arg1)
  152. }
  153. // DeleteForageCategory mocks base method.
  154. func (m *MockPastureService) DeleteForageCategory(arg0 context.Context, arg1 int64) error {
  155. m.ctrl.T.Helper()
  156. ret := m.ctrl.Call(m, "DeleteForageCategory", arg0, arg1)
  157. ret0, _ := ret[0].(error)
  158. return ret0
  159. }
  160. // DeleteForageCategory indicates an expected call of DeleteForageCategory.
  161. func (mr *MockPastureServiceMockRecorder) DeleteForageCategory(arg0, arg1 interface{}) *gomock.Call {
  162. mr.mock.ctrl.T.Helper()
  163. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteForageCategory", reflect.TypeOf((*MockPastureService)(nil).DeleteForageCategory), arg0, arg1)
  164. }
  165. // DeleteForageList mocks base method.
  166. func (m *MockPastureService) DeleteForageList(arg0 context.Context, arg1 []int64) error {
  167. m.ctrl.T.Helper()
  168. ret := m.ctrl.Call(m, "DeleteForageList", arg0, arg1)
  169. ret0, _ := ret[0].(error)
  170. return ret0
  171. }
  172. // DeleteForageList indicates an expected call of DeleteForageList.
  173. func (mr *MockPastureServiceMockRecorder) DeleteForageList(arg0, arg1 interface{}) *gomock.Call {
  174. mr.mock.ctrl.T.Helper()
  175. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteForageList", reflect.TypeOf((*MockPastureService)(nil).DeleteForageList), arg0, arg1)
  176. }
  177. // DeleteGroupPasture mocks base method.
  178. func (m *MockPastureService) DeleteGroupPasture(arg0 context.Context, arg1 int64) error {
  179. m.ctrl.T.Helper()
  180. ret := m.ctrl.Call(m, "DeleteGroupPasture", arg0, arg1)
  181. ret0, _ := ret[0].(error)
  182. return ret0
  183. }
  184. // DeleteGroupPasture indicates an expected call of DeleteGroupPasture.
  185. func (mr *MockPastureServiceMockRecorder) DeleteGroupPasture(arg0, arg1 interface{}) *gomock.Call {
  186. mr.mock.ctrl.T.Helper()
  187. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroupPasture", reflect.TypeOf((*MockPastureService)(nil).DeleteGroupPasture), arg0, arg1)
  188. }
  189. // DistributeFeedFormula mocks base method.
  190. func (m *MockPastureService) DistributeFeedFormula(arg0 context.Context, arg1 *operationPb.DistributeFeedFormulaRequest) error {
  191. m.ctrl.T.Helper()
  192. ret := m.ctrl.Call(m, "DistributeFeedFormula", arg0, arg1)
  193. ret0, _ := ret[0].(error)
  194. return ret0
  195. }
  196. // DistributeFeedFormula indicates an expected call of DistributeFeedFormula.
  197. func (mr *MockPastureServiceMockRecorder) DistributeFeedFormula(arg0, arg1 interface{}) *gomock.Call {
  198. mr.mock.ctrl.T.Helper()
  199. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DistributeFeedFormula", reflect.TypeOf((*MockPastureService)(nil).DistributeFeedFormula), arg0, arg1)
  200. }
  201. // EditCattleCategory mocks base method.
  202. func (m *MockPastureService) EditCattleCategory(arg0 context.Context, arg1 *operationPb.AddCattleCategoryRequest) error {
  203. m.ctrl.T.Helper()
  204. ret := m.ctrl.Call(m, "EditCattleCategory", arg0, arg1)
  205. ret0, _ := ret[0].(error)
  206. return ret0
  207. }
  208. // EditCattleCategory indicates an expected call of EditCattleCategory.
  209. func (mr *MockPastureServiceMockRecorder) EditCattleCategory(arg0, arg1 interface{}) *gomock.Call {
  210. mr.mock.ctrl.T.Helper()
  211. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EditCattleCategory", reflect.TypeOf((*MockPastureService)(nil).EditCattleCategory), arg0, arg1)
  212. }
  213. // EditFeedByFeedFormula mocks base method.
  214. func (m *MockPastureService) EditFeedByFeedFormula(arg0 context.Context, arg1 *operationPb.AddFeedFormulaDetail) error {
  215. m.ctrl.T.Helper()
  216. ret := m.ctrl.Call(m, "EditFeedByFeedFormula", arg0, arg1)
  217. ret0, _ := ret[0].(error)
  218. return ret0
  219. }
  220. // EditFeedByFeedFormula indicates an expected call of EditFeedByFeedFormula.
  221. func (mr *MockPastureServiceMockRecorder) EditFeedByFeedFormula(arg0, arg1 interface{}) *gomock.Call {
  222. mr.mock.ctrl.T.Helper()
  223. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EditFeedByFeedFormula", reflect.TypeOf((*MockPastureService)(nil).EditFeedByFeedFormula), arg0, arg1)
  224. }
  225. // EditFeedFormula mocks base method.
  226. func (m *MockPastureService) EditFeedFormula(arg0 context.Context, arg1 *operationPb.AddFeedFormulaRequest) error {
  227. m.ctrl.T.Helper()
  228. ret := m.ctrl.Call(m, "EditFeedFormula", arg0, arg1)
  229. ret0, _ := ret[0].(error)
  230. return ret0
  231. }
  232. // EditFeedFormula indicates an expected call of EditFeedFormula.
  233. func (mr *MockPastureServiceMockRecorder) EditFeedFormula(arg0, arg1 interface{}) *gomock.Call {
  234. mr.mock.ctrl.T.Helper()
  235. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EditFeedFormula", reflect.TypeOf((*MockPastureService)(nil).EditFeedFormula), arg0, arg1)
  236. }
  237. // EditForage mocks base method.
  238. func (m *MockPastureService) EditForage(arg0 context.Context, arg1 *operationPb.AddForageRequest) error {
  239. m.ctrl.T.Helper()
  240. ret := m.ctrl.Call(m, "EditForage", arg0, arg1)
  241. ret0, _ := ret[0].(error)
  242. return ret0
  243. }
  244. // EditForage indicates an expected call of EditForage.
  245. func (mr *MockPastureServiceMockRecorder) EditForage(arg0, arg1 interface{}) *gomock.Call {
  246. mr.mock.ctrl.T.Helper()
  247. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EditForage", reflect.TypeOf((*MockPastureService)(nil).EditForage), arg0, arg1)
  248. }
  249. // EditForageCategory mocks base method.
  250. func (m *MockPastureService) EditForageCategory(arg0 context.Context, arg1 *operationPb.AddForageCategoryRequest) error {
  251. m.ctrl.T.Helper()
  252. ret := m.ctrl.Call(m, "EditForageCategory", arg0, arg1)
  253. ret0, _ := ret[0].(error)
  254. return ret0
  255. }
  256. // EditForageCategory indicates an expected call of EditForageCategory.
  257. func (mr *MockPastureServiceMockRecorder) EditForageCategory(arg0, arg1 interface{}) *gomock.Call {
  258. mr.mock.ctrl.T.Helper()
  259. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EditForageCategory", reflect.TypeOf((*MockPastureService)(nil).EditForageCategory), arg0, arg1)
  260. }
  261. // EditGroupPasture mocks base method.
  262. func (m *MockPastureService) EditGroupPasture(arg0 context.Context, arg1 *operationPb.AddPastureRequest) error {
  263. m.ctrl.T.Helper()
  264. ret := m.ctrl.Call(m, "EditGroupPasture", arg0, arg1)
  265. ret0, _ := ret[0].(error)
  266. return ret0
  267. }
  268. // EditGroupPasture indicates an expected call of EditGroupPasture.
  269. func (mr *MockPastureServiceMockRecorder) EditGroupPasture(arg0, arg1 interface{}) *gomock.Call {
  270. mr.mock.ctrl.T.Helper()
  271. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EditGroupPasture", reflect.TypeOf((*MockPastureService)(nil).EditGroupPasture), arg0, arg1)
  272. }
  273. // EditRecodeFeedFormula mocks base method.
  274. func (m *MockPastureService) EditRecodeFeedFormula(arg0 context.Context, arg1 *operationPb.EditRecodeFeedFormulaRequest) (*operationPb.EditRecodeFeedFormulaResponse, error) {
  275. m.ctrl.T.Helper()
  276. ret := m.ctrl.Call(m, "EditRecodeFeedFormula", arg0, arg1)
  277. ret0, _ := ret[0].(*operationPb.EditRecodeFeedFormulaResponse)
  278. ret1, _ := ret[1].(error)
  279. return ret0, ret1
  280. }
  281. // EditRecodeFeedFormula indicates an expected call of EditRecodeFeedFormula.
  282. func (mr *MockPastureServiceMockRecorder) EditRecodeFeedFormula(arg0, arg1 interface{}) *gomock.Call {
  283. mr.mock.ctrl.T.Helper()
  284. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EditRecodeFeedFormula", reflect.TypeOf((*MockPastureService)(nil).EditRecodeFeedFormula), arg0, arg1)
  285. }
  286. // EncodeNumber mocks base method.
  287. func (m *MockPastureService) EncodeNumber(arg0 context.Context) string {
  288. m.ctrl.T.Helper()
  289. ret := m.ctrl.Call(m, "EncodeNumber", arg0)
  290. ret0, _ := ret[0].(string)
  291. return ret0
  292. }
  293. // EncodeNumber indicates an expected call of EncodeNumber.
  294. func (mr *MockPastureServiceMockRecorder) EncodeNumber(arg0 interface{}) *gomock.Call {
  295. mr.mock.ctrl.T.Helper()
  296. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncodeNumber", reflect.TypeOf((*MockPastureService)(nil).EncodeNumber), arg0)
  297. }
  298. // ExcelExportFeedFormula mocks base method.
  299. func (m *MockPastureService) ExcelExportFeedFormula(arg0 context.Context, arg1 *operationPb.SearchFeedFormulaRequest) (*bytes.Buffer, error) {
  300. m.ctrl.T.Helper()
  301. ret := m.ctrl.Call(m, "ExcelExportFeedFormula", arg0, arg1)
  302. ret0, _ := ret[0].(*bytes.Buffer)
  303. ret1, _ := ret[1].(error)
  304. return ret0, ret1
  305. }
  306. // ExcelExportFeedFormula indicates an expected call of ExcelExportFeedFormula.
  307. func (mr *MockPastureServiceMockRecorder) ExcelExportFeedFormula(arg0, arg1 interface{}) *gomock.Call {
  308. mr.mock.ctrl.T.Helper()
  309. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExcelExportFeedFormula", reflect.TypeOf((*MockPastureService)(nil).ExcelExportFeedFormula), arg0, arg1)
  310. }
  311. // ExcelExportForage mocks base method.
  312. func (m *MockPastureService) ExcelExportForage(arg0 context.Context, arg1 *operationPb.SearchForageListRequest) (*bytes.Buffer, error) {
  313. m.ctrl.T.Helper()
  314. ret := m.ctrl.Call(m, "ExcelExportForage", arg0, arg1)
  315. ret0, _ := ret[0].(*bytes.Buffer)
  316. ret1, _ := ret[1].(error)
  317. return ret0, ret1
  318. }
  319. // ExcelExportForage indicates an expected call of ExcelExportForage.
  320. func (mr *MockPastureServiceMockRecorder) ExcelExportForage(arg0, arg1 interface{}) *gomock.Call {
  321. mr.mock.ctrl.T.Helper()
  322. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExcelExportForage", reflect.TypeOf((*MockPastureService)(nil).ExcelExportForage), arg0, arg1)
  323. }
  324. // ExcelImportFeedFormula mocks base method.
  325. func (m *MockPastureService) ExcelImportFeedFormula(arg0 context.Context, arg1 io.Reader) error {
  326. m.ctrl.T.Helper()
  327. ret := m.ctrl.Call(m, "ExcelImportFeedFormula", arg0, arg1)
  328. ret0, _ := ret[0].(error)
  329. return ret0
  330. }
  331. // ExcelImportFeedFormula indicates an expected call of ExcelImportFeedFormula.
  332. func (mr *MockPastureServiceMockRecorder) ExcelImportFeedFormula(arg0, arg1 interface{}) *gomock.Call {
  333. mr.mock.ctrl.T.Helper()
  334. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExcelImportFeedFormula", reflect.TypeOf((*MockPastureService)(nil).ExcelImportFeedFormula), arg0, arg1)
  335. }
  336. // ExcelImportForage mocks base method.
  337. func (m *MockPastureService) ExcelImportForage(arg0 context.Context, arg1 io.Reader) error {
  338. m.ctrl.T.Helper()
  339. ret := m.ctrl.Call(m, "ExcelImportForage", arg0, arg1)
  340. ret0, _ := ret[0].(error)
  341. return ret0
  342. }
  343. // ExcelImportForage indicates an expected call of ExcelImportForage.
  344. func (mr *MockPastureServiceMockRecorder) ExcelImportForage(arg0, arg1 interface{}) *gomock.Call {
  345. mr.mock.ctrl.T.Helper()
  346. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExcelImportForage", reflect.TypeOf((*MockPastureService)(nil).ExcelImportForage), arg0, arg1)
  347. }
  348. // ExcelTemplateFeedFormula mocks base method.
  349. func (m *MockPastureService) ExcelTemplateFeedFormula(arg0 context.Context) (*bytes.Buffer, error) {
  350. m.ctrl.T.Helper()
  351. ret := m.ctrl.Call(m, "ExcelTemplateFeedFormula", arg0)
  352. ret0, _ := ret[0].(*bytes.Buffer)
  353. ret1, _ := ret[1].(error)
  354. return ret0, ret1
  355. }
  356. // ExcelTemplateFeedFormula indicates an expected call of ExcelTemplateFeedFormula.
  357. func (mr *MockPastureServiceMockRecorder) ExcelTemplateFeedFormula(arg0 interface{}) *gomock.Call {
  358. mr.mock.ctrl.T.Helper()
  359. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExcelTemplateFeedFormula", reflect.TypeOf((*MockPastureService)(nil).ExcelTemplateFeedFormula), arg0)
  360. }
  361. // ExcelTemplateForage mocks base method.
  362. func (m *MockPastureService) ExcelTemplateForage(arg0 context.Context) (*bytes.Buffer, error) {
  363. m.ctrl.T.Helper()
  364. ret := m.ctrl.Call(m, "ExcelTemplateForage", arg0)
  365. ret0, _ := ret[0].(*bytes.Buffer)
  366. ret1, _ := ret[1].(error)
  367. return ret0, ret1
  368. }
  369. // ExcelTemplateForage indicates an expected call of ExcelTemplateForage.
  370. func (mr *MockPastureServiceMockRecorder) ExcelTemplateForage(arg0 interface{}) *gomock.Call {
  371. mr.mock.ctrl.T.Helper()
  372. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExcelTemplateForage", reflect.TypeOf((*MockPastureService)(nil).ExcelTemplateForage), arg0)
  373. }
  374. // FeedFormulaDetailBySort mocks base method.
  375. func (m *MockPastureService) FeedFormulaDetailBySort(arg0 context.Context, arg1 *operationPb.GroupAddFeedFormulaDetail) error {
  376. m.ctrl.T.Helper()
  377. ret := m.ctrl.Call(m, "FeedFormulaDetailBySort", arg0, arg1)
  378. ret0, _ := ret[0].(error)
  379. return ret0
  380. }
  381. // FeedFormulaDetailBySort indicates an expected call of FeedFormulaDetailBySort.
  382. func (mr *MockPastureServiceMockRecorder) FeedFormulaDetailBySort(arg0, arg1 interface{}) *gomock.Call {
  383. mr.mock.ctrl.T.Helper()
  384. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeedFormulaDetailBySort", reflect.TypeOf((*MockPastureService)(nil).FeedFormulaDetailBySort), arg0, arg1)
  385. }
  386. // FeedFormulaDetailIsModify mocks base method.
  387. func (m *MockPastureService) FeedFormulaDetailIsModify(arg0 context.Context, arg1 *operationPb.AddFeedFormulaDetail) error {
  388. m.ctrl.T.Helper()
  389. ret := m.ctrl.Call(m, "FeedFormulaDetailIsModify", arg0, arg1)
  390. ret0, _ := ret[0].(error)
  391. return ret0
  392. }
  393. // FeedFormulaDetailIsModify indicates an expected call of FeedFormulaDetailIsModify.
  394. func (mr *MockPastureServiceMockRecorder) FeedFormulaDetailIsModify(arg0, arg1 interface{}) *gomock.Call {
  395. mr.mock.ctrl.T.Helper()
  396. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeedFormulaDetailIsModify", reflect.TypeOf((*MockPastureService)(nil).FeedFormulaDetailIsModify), arg0, arg1)
  397. }
  398. // FeedFormulaDetailList mocks base method.
  399. func (m *MockPastureService) FeedFormulaDetailList(arg0 context.Context, arg1 *operationPb.FeedFormulaDetailRequest) (*operationPb.FeedFormulaDetailResponse, error) {
  400. m.ctrl.T.Helper()
  401. ret := m.ctrl.Call(m, "FeedFormulaDetailList", arg0, arg1)
  402. ret0, _ := ret[0].(*operationPb.FeedFormulaDetailResponse)
  403. ret1, _ := ret[1].(error)
  404. return ret0, ret1
  405. }
  406. // FeedFormulaDetailList indicates an expected call of FeedFormulaDetailList.
  407. func (mr *MockPastureServiceMockRecorder) FeedFormulaDetailList(arg0, arg1 interface{}) *gomock.Call {
  408. mr.mock.ctrl.T.Helper()
  409. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeedFormulaDetailList", reflect.TypeOf((*MockPastureService)(nil).FeedFormulaDetailList), arg0, arg1)
  410. }
  411. // FeedFormulaUsage mocks base method.
  412. func (m *MockPastureService) FeedFormulaUsage(arg0 context.Context, arg1 *operationPb.FeedFormulaUsageRequest) (*operationPb.FeedFormulaUsageResponse, error) {
  413. m.ctrl.T.Helper()
  414. ret := m.ctrl.Call(m, "FeedFormulaUsage", arg0, arg1)
  415. ret0, _ := ret[0].(*operationPb.FeedFormulaUsageResponse)
  416. ret1, _ := ret[1].(error)
  417. return ret0, ret1
  418. }
  419. // FeedFormulaUsage indicates an expected call of FeedFormulaUsage.
  420. func (mr *MockPastureServiceMockRecorder) FeedFormulaUsage(arg0, arg1 interface{}) *gomock.Call {
  421. mr.mock.ctrl.T.Helper()
  422. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeedFormulaUsage", reflect.TypeOf((*MockPastureService)(nil).FeedFormulaUsage), arg0, arg1)
  423. }
  424. // ForageEnumList mocks base method.
  425. func (m *MockPastureService) ForageEnumList(arg0 context.Context) *operationPb.ForageEnumListResponse {
  426. m.ctrl.T.Helper()
  427. ret := m.ctrl.Call(m, "ForageEnumList", arg0)
  428. ret0, _ := ret[0].(*operationPb.ForageEnumListResponse)
  429. return ret0
  430. }
  431. // ForageEnumList indicates an expected call of ForageEnumList.
  432. func (mr *MockPastureServiceMockRecorder) ForageEnumList(arg0 interface{}) *gomock.Call {
  433. mr.mock.ctrl.T.Helper()
  434. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForageEnumList", reflect.TypeOf((*MockPastureService)(nil).ForageEnumList), arg0)
  435. }
  436. // ForageListSort mocks base method.
  437. func (m *MockPastureService) ForageListSort(arg0 context.Context, arg1 *operationPb.ForageListSortRequest) error {
  438. m.ctrl.T.Helper()
  439. ret := m.ctrl.Call(m, "ForageListSort", arg0, arg1)
  440. ret0, _ := ret[0].(error)
  441. return ret0
  442. }
  443. // ForageListSort indicates an expected call of ForageListSort.
  444. func (mr *MockPastureServiceMockRecorder) ForageListSort(arg0, arg1 interface{}) *gomock.Call {
  445. mr.mock.ctrl.T.Helper()
  446. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForageListSort", reflect.TypeOf((*MockPastureService)(nil).ForageListSort), arg0, arg1)
  447. }
  448. // IsShowCattleCategory mocks base method.
  449. func (m *MockPastureService) IsShowCattleCategory(arg0 context.Context, arg1 *operationPb.IsShowCattleCategory) error {
  450. m.ctrl.T.Helper()
  451. ret := m.ctrl.Call(m, "IsShowCattleCategory", arg0, arg1)
  452. ret0, _ := ret[0].(error)
  453. return ret0
  454. }
  455. // IsShowCattleCategory indicates an expected call of IsShowCattleCategory.
  456. func (mr *MockPastureServiceMockRecorder) IsShowCattleCategory(arg0, arg1 interface{}) *gomock.Call {
  457. mr.mock.ctrl.T.Helper()
  458. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsShowCattleCategory", reflect.TypeOf((*MockPastureService)(nil).IsShowCattleCategory), arg0, arg1)
  459. }
  460. // IsShowFeedFormula mocks base method.
  461. func (m *MockPastureService) IsShowFeedFormula(arg0 context.Context, arg1 *operationPb.IsShowModifyFeedFormula) error {
  462. m.ctrl.T.Helper()
  463. ret := m.ctrl.Call(m, "IsShowFeedFormula", arg0, arg1)
  464. ret0, _ := ret[0].(error)
  465. return ret0
  466. }
  467. // IsShowFeedFormula indicates an expected call of IsShowFeedFormula.
  468. func (mr *MockPastureServiceMockRecorder) IsShowFeedFormula(arg0, arg1 interface{}) *gomock.Call {
  469. mr.mock.ctrl.T.Helper()
  470. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsShowFeedFormula", reflect.TypeOf((*MockPastureService)(nil).IsShowFeedFormula), arg0, arg1)
  471. }
  472. // IsShowForage mocks base method.
  473. func (m *MockPastureService) IsShowForage(arg0 context.Context, arg1 *operationPb.IsShowForage) error {
  474. m.ctrl.T.Helper()
  475. ret := m.ctrl.Call(m, "IsShowForage", arg0, arg1)
  476. ret0, _ := ret[0].(error)
  477. return ret0
  478. }
  479. // IsShowForage indicates an expected call of IsShowForage.
  480. func (mr *MockPastureServiceMockRecorder) IsShowForage(arg0, arg1 interface{}) *gomock.Call {
  481. mr.mock.ctrl.T.Helper()
  482. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsShowForage", reflect.TypeOf((*MockPastureService)(nil).IsShowForage), arg0, arg1)
  483. }
  484. // IsShowForageCategory mocks base method.
  485. func (m *MockPastureService) IsShowForageCategory(arg0 context.Context, arg1 *operationPb.IsShowForageCategory) error {
  486. m.ctrl.T.Helper()
  487. ret := m.ctrl.Call(m, "IsShowForageCategory", arg0, arg1)
  488. ret0, _ := ret[0].(error)
  489. return ret0
  490. }
  491. // IsShowForageCategory indicates an expected call of IsShowForageCategory.
  492. func (mr *MockPastureServiceMockRecorder) IsShowForageCategory(arg0, arg1 interface{}) *gomock.Call {
  493. mr.mock.ctrl.T.Helper()
  494. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsShowForageCategory", reflect.TypeOf((*MockPastureService)(nil).IsShowForageCategory), arg0, arg1)
  495. }
  496. // IsShowGroupPasture mocks base method.
  497. func (m *MockPastureService) IsShowGroupPasture(arg0 context.Context, arg1 *operationPb.IsShowGroupPasture) error {
  498. m.ctrl.T.Helper()
  499. ret := m.ctrl.Call(m, "IsShowGroupPasture", arg0, arg1)
  500. ret0, _ := ret[0].(error)
  501. return ret0
  502. }
  503. // IsShowGroupPasture indicates an expected call of IsShowGroupPasture.
  504. func (mr *MockPastureServiceMockRecorder) IsShowGroupPasture(arg0, arg1 interface{}) *gomock.Call {
  505. mr.mock.ctrl.T.Helper()
  506. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsShowGroupPasture", reflect.TypeOf((*MockPastureService)(nil).IsShowGroupPasture), arg0, arg1)
  507. }
  508. // MixedFeedFormula mocks base method.
  509. func (m *MockPastureService) MixedFeedFormula(arg0 context.Context, arg1 *operationPb.MixedFeedFormulaRequest) error {
  510. m.ctrl.T.Helper()
  511. ret := m.ctrl.Call(m, "MixedFeedFormula", arg0, arg1)
  512. ret0, _ := ret[0].(error)
  513. return ret0
  514. }
  515. // MixedFeedFormula indicates an expected call of MixedFeedFormula.
  516. func (mr *MockPastureServiceMockRecorder) MixedFeedFormula(arg0, arg1 interface{}) *gomock.Call {
  517. mr.mock.ctrl.T.Helper()
  518. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MixedFeedFormula", reflect.TypeOf((*MockPastureService)(nil).MixedFeedFormula), arg0, arg1)
  519. }
  520. // ResetPasswordGroupPasture mocks base method.
  521. func (m *MockPastureService) ResetPasswordGroupPasture(arg0 context.Context, arg1 int64) error {
  522. m.ctrl.T.Helper()
  523. ret := m.ctrl.Call(m, "ResetPasswordGroupPasture", arg0, arg1)
  524. ret0, _ := ret[0].(error)
  525. return ret0
  526. }
  527. // ResetPasswordGroupPasture indicates an expected call of ResetPasswordGroupPasture.
  528. func (mr *MockPastureServiceMockRecorder) ResetPasswordGroupPasture(arg0, arg1 interface{}) *gomock.Call {
  529. mr.mock.ctrl.T.Helper()
  530. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetPasswordGroupPasture", reflect.TypeOf((*MockPastureService)(nil).ResetPasswordGroupPasture), arg0, arg1)
  531. }
  532. // SearchCattleCategoryList mocks base method.
  533. func (m *MockPastureService) SearchCattleCategoryList(arg0 context.Context, arg1 *operationPb.SearchCattleCategoryRequest) (*operationPb.SearchCattleCategoryResponse, error) {
  534. m.ctrl.T.Helper()
  535. ret := m.ctrl.Call(m, "SearchCattleCategoryList", arg0, arg1)
  536. ret0, _ := ret[0].(*operationPb.SearchCattleCategoryResponse)
  537. ret1, _ := ret[1].(error)
  538. return ret0, ret1
  539. }
  540. // SearchCattleCategoryList indicates an expected call of SearchCattleCategoryList.
  541. func (mr *MockPastureServiceMockRecorder) SearchCattleCategoryList(arg0, arg1 interface{}) *gomock.Call {
  542. mr.mock.ctrl.T.Helper()
  543. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchCattleCategoryList", reflect.TypeOf((*MockPastureService)(nil).SearchCattleCategoryList), arg0, arg1)
  544. }
  545. // SearchFeedFormulaDetail mocks base method.
  546. func (m *MockPastureService) SearchFeedFormulaDetail(arg0 context.Context, arg1 *operationPb.AddFeedFormulaDetail) (*operationPb.FeedFormulaDetailResponse, error) {
  547. m.ctrl.T.Helper()
  548. ret := m.ctrl.Call(m, "SearchFeedFormulaDetail", arg0, arg1)
  549. ret0, _ := ret[0].(*operationPb.FeedFormulaDetailResponse)
  550. ret1, _ := ret[1].(error)
  551. return ret0, ret1
  552. }
  553. // SearchFeedFormulaDetail indicates an expected call of SearchFeedFormulaDetail.
  554. func (mr *MockPastureServiceMockRecorder) SearchFeedFormulaDetail(arg0, arg1 interface{}) *gomock.Call {
  555. mr.mock.ctrl.T.Helper()
  556. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchFeedFormulaDetail", reflect.TypeOf((*MockPastureService)(nil).SearchFeedFormulaDetail), arg0, arg1)
  557. }
  558. // SearchFeedFormulaList mocks base method.
  559. func (m *MockPastureService) SearchFeedFormulaList(arg0 context.Context, arg1 *operationPb.SearchFeedFormulaRequest) (*operationPb.SearchFeedFormulaListResponse, error) {
  560. m.ctrl.T.Helper()
  561. ret := m.ctrl.Call(m, "SearchFeedFormulaList", arg0, arg1)
  562. ret0, _ := ret[0].(*operationPb.SearchFeedFormulaListResponse)
  563. ret1, _ := ret[1].(error)
  564. return ret0, ret1
  565. }
  566. // SearchFeedFormulaList indicates an expected call of SearchFeedFormulaList.
  567. func (mr *MockPastureServiceMockRecorder) SearchFeedFormulaList(arg0, arg1 interface{}) *gomock.Call {
  568. mr.mock.ctrl.T.Helper()
  569. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchFeedFormulaList", reflect.TypeOf((*MockPastureService)(nil).SearchFeedFormulaList), arg0, arg1)
  570. }
  571. // SearchForageCategoryList mocks base method.
  572. func (m *MockPastureService) SearchForageCategoryList(arg0 context.Context, arg1 *operationPb.SearchForageCategoryRequest) (*operationPb.SearchForageCategoryResponse, error) {
  573. m.ctrl.T.Helper()
  574. ret := m.ctrl.Call(m, "SearchForageCategoryList", arg0, arg1)
  575. ret0, _ := ret[0].(*operationPb.SearchForageCategoryResponse)
  576. ret1, _ := ret[1].(error)
  577. return ret0, ret1
  578. }
  579. // SearchForageCategoryList indicates an expected call of SearchForageCategoryList.
  580. func (mr *MockPastureServiceMockRecorder) SearchForageCategoryList(arg0, arg1 interface{}) *gomock.Call {
  581. mr.mock.ctrl.T.Helper()
  582. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchForageCategoryList", reflect.TypeOf((*MockPastureService)(nil).SearchForageCategoryList), arg0, arg1)
  583. }
  584. // SearchForageList mocks base method.
  585. func (m *MockPastureService) SearchForageList(arg0 context.Context, arg1 *operationPb.SearchForageListRequest) (*operationPb.SearchForageListResponse, error) {
  586. m.ctrl.T.Helper()
  587. ret := m.ctrl.Call(m, "SearchForageList", arg0, arg1)
  588. ret0, _ := ret[0].(*operationPb.SearchForageListResponse)
  589. ret1, _ := ret[1].(error)
  590. return ret0, ret1
  591. }
  592. // SearchForageList indicates an expected call of SearchForageList.
  593. func (mr *MockPastureServiceMockRecorder) SearchForageList(arg0, arg1 interface{}) *gomock.Call {
  594. mr.mock.ctrl.T.Helper()
  595. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchForageList", reflect.TypeOf((*MockPastureService)(nil).SearchForageList), arg0, arg1)
  596. }
  597. // SearchGroupPastureList mocks base method.
  598. func (m *MockPastureService) SearchGroupPastureList(arg0 context.Context, arg1 *operationPb.SearchPastureRequest) (*operationPb.SearchPastureResponse, error) {
  599. m.ctrl.T.Helper()
  600. ret := m.ctrl.Call(m, "SearchGroupPastureList", arg0, arg1)
  601. ret0, _ := ret[0].(*operationPb.SearchPastureResponse)
  602. ret1, _ := ret[1].(error)
  603. return ret0, ret1
  604. }
  605. // SearchGroupPastureList indicates an expected call of SearchGroupPastureList.
  606. func (mr *MockPastureServiceMockRecorder) SearchGroupPastureList(arg0, arg1 interface{}) *gomock.Call {
  607. mr.mock.ctrl.T.Helper()
  608. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchGroupPastureList", reflect.TypeOf((*MockPastureService)(nil).SearchGroupPastureList), arg0, arg1)
  609. }
  610. // SmallMaterial mocks base method.
  611. func (m *MockPastureService) SmallMaterial(arg0 context.Context, arg1 *operationPb.SmallMaterialRequest) (*model.PastureCommonResponse, error) {
  612. m.ctrl.T.Helper()
  613. ret := m.ctrl.Call(m, "SmallMaterial", arg0, arg1)
  614. ret0, _ := ret[0].(*model.PastureCommonResponse)
  615. ret1, _ := ret[1].(error)
  616. return ret0, ret1
  617. }
  618. // SmallMaterial indicates an expected call of SmallMaterial.
  619. func (mr *MockPastureServiceMockRecorder) SmallMaterial(arg0, arg1 interface{}) *gomock.Call {
  620. mr.mock.ctrl.T.Helper()
  621. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SmallMaterial", reflect.TypeOf((*MockPastureService)(nil).SmallMaterial), arg0, arg1)
  622. }