WorkService.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: kpt-pasture/module/backend (interfaces: WorkService)
  3. // Package kptservicemock is a generated GoMock package.
  4. package kptservicemock
  5. import (
  6. context "context"
  7. reflect "reflect"
  8. cowPb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/cow"
  9. gomock "github.com/golang/mock/gomock"
  10. )
  11. // MockWorkService is a mock of WorkService interface.
  12. type MockWorkService struct {
  13. ctrl *gomock.Controller
  14. recorder *MockWorkServiceMockRecorder
  15. }
  16. // MockWorkServiceMockRecorder is the mock recorder for MockWorkService.
  17. type MockWorkServiceMockRecorder struct {
  18. mock *MockWorkService
  19. }
  20. // NewMockWorkService creates a new mock instance.
  21. func NewMockWorkService(ctrl *gomock.Controller) *MockWorkService {
  22. mock := &MockWorkService{ctrl: ctrl}
  23. mock.recorder = &MockWorkServiceMockRecorder{mock}
  24. return mock
  25. }
  26. // EXPECT returns an object that allows the caller to indicate expected use.
  27. func (m *MockWorkService) EXPECT() *MockWorkServiceMockRecorder {
  28. return m.recorder
  29. }
  30. // CalendarList mocks base method.
  31. func (m *MockWorkService) CalendarList(arg0 context.Context, arg1 *cowPb.CalendarRequest) (*cowPb.CalendarResponse, error) {
  32. m.ctrl.T.Helper()
  33. ret := m.ctrl.Call(m, "CalendarList", arg0, arg1)
  34. ret0, _ := ret[0].(*cowPb.CalendarResponse)
  35. ret1, _ := ret[1].(error)
  36. return ret0, ret1
  37. }
  38. // CalendarList indicates an expected call of CalendarList.
  39. func (mr *MockWorkServiceMockRecorder) CalendarList(arg0, arg1 interface{}) *gomock.Call {
  40. mr.mock.ctrl.T.Helper()
  41. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalendarList", reflect.TypeOf((*MockWorkService)(nil).CalendarList), arg0, arg1)
  42. }
  43. // CalendarTableDetail mocks base method.
  44. func (m *MockWorkService) CalendarTableDetail(arg0 context.Context, arg1 *cowPb.CalendarTableRequest, arg2 *cowPb.PaginationModel) (interface{}, error) {
  45. m.ctrl.T.Helper()
  46. ret := m.ctrl.Call(m, "CalendarTableDetail", arg0, arg1, arg2)
  47. ret0, _ := ret[0].(interface{})
  48. ret1, _ := ret[1].(error)
  49. return ret0, ret1
  50. }
  51. // CalendarTableDetail indicates an expected call of CalendarTableDetail.
  52. func (mr *MockWorkServiceMockRecorder) CalendarTableDetail(arg0, arg1, arg2 interface{}) *gomock.Call {
  53. mr.mock.ctrl.T.Helper()
  54. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalendarTableDetail", reflect.TypeOf((*MockWorkService)(nil).CalendarTableDetail), arg0, arg1, arg2)
  55. }
  56. // CalendarToDoList mocks base method.
  57. func (m *MockWorkService) CalendarToDoList(arg0 context.Context, arg1 *cowPb.CalendarToDoRequest, arg2 *cowPb.PaginationModel) (*cowPb.CalendarToDoResponse, error) {
  58. m.ctrl.T.Helper()
  59. ret := m.ctrl.Call(m, "CalendarToDoList", arg0, arg1, arg2)
  60. ret0, _ := ret[0].(*cowPb.CalendarToDoResponse)
  61. ret1, _ := ret[1].(error)
  62. return ret0, ret1
  63. }
  64. // CalendarToDoList indicates an expected call of CalendarToDoList.
  65. func (mr *MockWorkServiceMockRecorder) CalendarToDoList(arg0, arg1, arg2 interface{}) *gomock.Call {
  66. mr.mock.ctrl.T.Helper()
  67. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalendarToDoList", reflect.TypeOf((*MockWorkService)(nil).CalendarToDoList), arg0, arg1, arg2)
  68. }
  69. // CalvingCowList mocks base method.
  70. func (m *MockWorkService) CalvingCowList(arg0 context.Context, arg1 *cowPb.ItemsRequest, arg2 *cowPb.PaginationModel) (*cowPb.CalvingItemsResponse, error) {
  71. m.ctrl.T.Helper()
  72. ret := m.ctrl.Call(m, "CalvingCowList", arg0, arg1, arg2)
  73. ret0, _ := ret[0].(*cowPb.CalvingItemsResponse)
  74. ret1, _ := ret[1].(error)
  75. return ret0, ret1
  76. }
  77. // CalvingCowList indicates an expected call of CalvingCowList.
  78. func (mr *MockWorkServiceMockRecorder) CalvingCowList(arg0, arg1, arg2 interface{}) *gomock.Call {
  79. mr.mock.ctrl.T.Helper()
  80. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalvingCowList", reflect.TypeOf((*MockWorkService)(nil).CalvingCowList), arg0, arg1, arg2)
  81. }
  82. // CowDiseaseList mocks base method.
  83. func (m *MockWorkService) CowDiseaseList(arg0 context.Context, arg1 *cowPb.SearchEventCowTreatmentRequest, arg2 *cowPb.PaginationModel) (*cowPb.EventCowDiseaseResponse, error) {
  84. m.ctrl.T.Helper()
  85. ret := m.ctrl.Call(m, "CowDiseaseList", arg0, arg1, arg2)
  86. ret0, _ := ret[0].(*cowPb.EventCowDiseaseResponse)
  87. ret1, _ := ret[1].(error)
  88. return ret0, ret1
  89. }
  90. // CowDiseaseList indicates an expected call of CowDiseaseList.
  91. func (mr *MockWorkServiceMockRecorder) CowDiseaseList(arg0, arg1, arg2 interface{}) *gomock.Call {
  92. mr.mock.ctrl.T.Helper()
  93. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CowDiseaseList", reflect.TypeOf((*MockWorkService)(nil).CowDiseaseList), arg0, arg1, arg2)
  94. }
  95. // EstrusList mocks base method.
  96. func (m *MockWorkService) EstrusList(arg0 context.Context, arg1 *cowPb.EstrusItemsRequest, arg2 *cowPb.PaginationModel) (*cowPb.EstrusItemsResponse, error) {
  97. m.ctrl.T.Helper()
  98. ret := m.ctrl.Call(m, "EstrusList", arg0, arg1, arg2)
  99. ret0, _ := ret[0].(*cowPb.EstrusItemsResponse)
  100. ret1, _ := ret[1].(error)
  101. return ret0, ret1
  102. }
  103. // EstrusList indicates an expected call of EstrusList.
  104. func (mr *MockWorkServiceMockRecorder) EstrusList(arg0, arg1, arg2 interface{}) *gomock.Call {
  105. mr.mock.ctrl.T.Helper()
  106. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EstrusList", reflect.TypeOf((*MockWorkService)(nil).EstrusList), arg0, arg1, arg2)
  107. }
  108. // ImmunisationCowList mocks base method.
  109. func (m *MockWorkService) ImmunisationCowList(arg0 context.Context, arg1 *cowPb.ItemsRequest, arg2 *cowPb.PaginationModel) (*cowPb.ImmunizationItemsResponse, error) {
  110. m.ctrl.T.Helper()
  111. ret := m.ctrl.Call(m, "ImmunisationCowList", arg0, arg1, arg2)
  112. ret0, _ := ret[0].(*cowPb.ImmunizationItemsResponse)
  113. ret1, _ := ret[1].(error)
  114. return ret0, ret1
  115. }
  116. // ImmunisationCowList indicates an expected call of ImmunisationCowList.
  117. func (mr *MockWorkServiceMockRecorder) ImmunisationCowList(arg0, arg1, arg2 interface{}) *gomock.Call {
  118. mr.mock.ctrl.T.Helper()
  119. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImmunisationCowList", reflect.TypeOf((*MockWorkService)(nil).ImmunisationCowList), arg0, arg1, arg2)
  120. }
  121. // MatingCowList mocks base method.
  122. func (m *MockWorkService) MatingCowList(arg0 context.Context, arg1 *cowPb.ItemsRequest, arg2 *cowPb.PaginationModel) (*cowPb.MatingItemsResponse, error) {
  123. m.ctrl.T.Helper()
  124. ret := m.ctrl.Call(m, "MatingCowList", arg0, arg1, arg2)
  125. ret0, _ := ret[0].(*cowPb.MatingItemsResponse)
  126. ret1, _ := ret[1].(error)
  127. return ret0, ret1
  128. }
  129. // MatingCowList indicates an expected call of MatingCowList.
  130. func (mr *MockWorkServiceMockRecorder) MatingCowList(arg0, arg1, arg2 interface{}) *gomock.Call {
  131. mr.mock.ctrl.T.Helper()
  132. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MatingCowList", reflect.TypeOf((*MockWorkService)(nil).MatingCowList), arg0, arg1, arg2)
  133. }
  134. // OrderCreateOrUpdate mocks base method.
  135. func (m *MockWorkService) OrderCreateOrUpdate(arg0 context.Context, arg1 *cowPb.WorkOrderList) error {
  136. m.ctrl.T.Helper()
  137. ret := m.ctrl.Call(m, "OrderCreateOrUpdate", arg0, arg1)
  138. ret0, _ := ret[0].(error)
  139. return ret0
  140. }
  141. // OrderCreateOrUpdate indicates an expected call of OrderCreateOrUpdate.
  142. func (mr *MockWorkServiceMockRecorder) OrderCreateOrUpdate(arg0, arg1 interface{}) *gomock.Call {
  143. mr.mock.ctrl.T.Helper()
  144. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OrderCreateOrUpdate", reflect.TypeOf((*MockWorkService)(nil).OrderCreateOrUpdate), arg0, arg1)
  145. }
  146. // OrderIsShow mocks base method.
  147. func (m *MockWorkService) OrderIsShow(arg0 context.Context, arg1 int64) error {
  148. m.ctrl.T.Helper()
  149. ret := m.ctrl.Call(m, "OrderIsShow", arg0, arg1)
  150. ret0, _ := ret[0].(error)
  151. return ret0
  152. }
  153. // OrderIsShow indicates an expected call of OrderIsShow.
  154. func (mr *MockWorkServiceMockRecorder) OrderIsShow(arg0, arg1 interface{}) *gomock.Call {
  155. mr.mock.ctrl.T.Helper()
  156. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OrderIsShow", reflect.TypeOf((*MockWorkService)(nil).OrderIsShow), arg0, arg1)
  157. }
  158. // OrderList mocks base method.
  159. func (m *MockWorkService) OrderList(arg0 context.Context, arg1 *cowPb.SearchWorkOrderRequest, arg2 *cowPb.PaginationModel) (*cowPb.SearchWorkOrderResponse, error) {
  160. m.ctrl.T.Helper()
  161. ret := m.ctrl.Call(m, "OrderList", arg0, arg1, arg2)
  162. ret0, _ := ret[0].(*cowPb.SearchWorkOrderResponse)
  163. ret1, _ := ret[1].(error)
  164. return ret0, ret1
  165. }
  166. // OrderList indicates an expected call of OrderList.
  167. func (mr *MockWorkServiceMockRecorder) OrderList(arg0, arg1, arg2 interface{}) *gomock.Call {
  168. mr.mock.ctrl.T.Helper()
  169. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OrderList", reflect.TypeOf((*MockWorkService)(nil).OrderList), arg0, arg1, arg2)
  170. }
  171. // PregnancyCheckCowList mocks base method.
  172. func (m *MockWorkService) PregnancyCheckCowList(arg0 context.Context, arg1 *cowPb.ItemsRequest, arg2 *cowPb.PaginationModel) (*cowPb.PregnancyCheckItemsResponse, error) {
  173. m.ctrl.T.Helper()
  174. ret := m.ctrl.Call(m, "PregnancyCheckCowList", arg0, arg1, arg2)
  175. ret0, _ := ret[0].(*cowPb.PregnancyCheckItemsResponse)
  176. ret1, _ := ret[1].(error)
  177. return ret0, ret1
  178. }
  179. // PregnancyCheckCowList indicates an expected call of PregnancyCheckCowList.
  180. func (mr *MockWorkServiceMockRecorder) PregnancyCheckCowList(arg0, arg1, arg2 interface{}) *gomock.Call {
  181. mr.mock.ctrl.T.Helper()
  182. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PregnancyCheckCowList", reflect.TypeOf((*MockWorkService)(nil).PregnancyCheckCowList), arg0, arg1, arg2)
  183. }
  184. // SameTimeCowList mocks base method.
  185. func (m *MockWorkService) SameTimeCowList(arg0 context.Context, arg1 *cowPb.ItemsRequest, arg2 *cowPb.PaginationModel) (*cowPb.SameTimeItemResponse, error) {
  186. m.ctrl.T.Helper()
  187. ret := m.ctrl.Call(m, "SameTimeCowList", arg0, arg1, arg2)
  188. ret0, _ := ret[0].(*cowPb.SameTimeItemResponse)
  189. ret1, _ := ret[1].(error)
  190. return ret0, ret1
  191. }
  192. // SameTimeCowList indicates an expected call of SameTimeCowList.
  193. func (mr *MockWorkServiceMockRecorder) SameTimeCowList(arg0, arg1, arg2 interface{}) *gomock.Call {
  194. mr.mock.ctrl.T.Helper()
  195. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SameTimeCowList", reflect.TypeOf((*MockWorkService)(nil).SameTimeCowList), arg0, arg1, arg2)
  196. }
  197. // UserWorkOrderList mocks base method.
  198. func (m *MockWorkService) UserWorkOrderList(arg0 context.Context, arg1 cowPb.WorkOrderStatus_Kind, arg2 *cowPb.PaginationModel) (*cowPb.UserWorkOrderResponse, error) {
  199. m.ctrl.T.Helper()
  200. ret := m.ctrl.Call(m, "UserWorkOrderList", arg0, arg1, arg2)
  201. ret0, _ := ret[0].(*cowPb.UserWorkOrderResponse)
  202. ret1, _ := ret[1].(error)
  203. return ret0, ret1
  204. }
  205. // UserWorkOrderList indicates an expected call of UserWorkOrderList.
  206. func (mr *MockWorkServiceMockRecorder) UserWorkOrderList(arg0, arg1, arg2 interface{}) *gomock.Call {
  207. mr.mock.ctrl.T.Helper()
  208. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserWorkOrderList", reflect.TypeOf((*MockWorkService)(nil).UserWorkOrderList), arg0, arg1, arg2)
  209. }
  210. // WeaningCowList mocks base method.
  211. func (m *MockWorkService) WeaningCowList(arg0 context.Context, arg1 *cowPb.ItemsRequest, arg2 *cowPb.PaginationModel) (*cowPb.WeaningItemsResponse, error) {
  212. m.ctrl.T.Helper()
  213. ret := m.ctrl.Call(m, "WeaningCowList", arg0, arg1, arg2)
  214. ret0, _ := ret[0].(*cowPb.WeaningItemsResponse)
  215. ret1, _ := ret[1].(error)
  216. return ret0, ret1
  217. }
  218. // WeaningCowList indicates an expected call of WeaningCowList.
  219. func (mr *MockWorkServiceMockRecorder) WeaningCowList(arg0, arg1, arg2 interface{}) *gomock.Call {
  220. mr.mock.ctrl.T.Helper()
  221. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WeaningCowList", reflect.TypeOf((*MockWorkService)(nil).WeaningCowList), arg0, arg1, arg2)
  222. }