123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- // Code generated by MockGen. DO NOT EDIT.
- // Source: kpt-pasture/module/backend (interfaces: WorkService)
- // Package kptservicemock is a generated GoMock package.
- package kptservicemock
- import (
- context "context"
- reflect "reflect"
- cowPb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/cow"
- gomock "github.com/golang/mock/gomock"
- )
- // MockWorkService is a mock of WorkService interface.
- type MockWorkService struct {
- ctrl *gomock.Controller
- recorder *MockWorkServiceMockRecorder
- }
- // MockWorkServiceMockRecorder is the mock recorder for MockWorkService.
- type MockWorkServiceMockRecorder struct {
- mock *MockWorkService
- }
- // NewMockWorkService creates a new mock instance.
- func NewMockWorkService(ctrl *gomock.Controller) *MockWorkService {
- mock := &MockWorkService{ctrl: ctrl}
- mock.recorder = &MockWorkServiceMockRecorder{mock}
- return mock
- }
- // EXPECT returns an object that allows the caller to indicate expected use.
- func (m *MockWorkService) EXPECT() *MockWorkServiceMockRecorder {
- return m.recorder
- }
- // CalendarList mocks base method.
- func (m *MockWorkService) CalendarList(arg0 context.Context, arg1 *cowPb.CalendarRequest) (*cowPb.CalendarResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CalendarList", arg0, arg1)
- ret0, _ := ret[0].(*cowPb.CalendarResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // CalendarList indicates an expected call of CalendarList.
- func (mr *MockWorkServiceMockRecorder) CalendarList(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalendarList", reflect.TypeOf((*MockWorkService)(nil).CalendarList), arg0, arg1)
- }
- // CalendarTableDetail mocks base method.
- func (m *MockWorkService) CalendarTableDetail(arg0 context.Context, arg1 *cowPb.CalendarTableRequest, arg2 *cowPb.PaginationModel) (interface{}, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CalendarTableDetail", arg0, arg1, arg2)
- ret0, _ := ret[0].(interface{})
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // CalendarTableDetail indicates an expected call of CalendarTableDetail.
- func (mr *MockWorkServiceMockRecorder) CalendarTableDetail(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalendarTableDetail", reflect.TypeOf((*MockWorkService)(nil).CalendarTableDetail), arg0, arg1, arg2)
- }
- // CalendarToDoList mocks base method.
- func (m *MockWorkService) CalendarToDoList(arg0 context.Context, arg1 *cowPb.CalendarToDoRequest, arg2 *cowPb.PaginationModel) (*cowPb.CalendarToDoResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CalendarToDoList", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.CalendarToDoResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // CalendarToDoList indicates an expected call of CalendarToDoList.
- func (mr *MockWorkServiceMockRecorder) CalendarToDoList(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalendarToDoList", reflect.TypeOf((*MockWorkService)(nil).CalendarToDoList), arg0, arg1, arg2)
- }
- // CalvingCowList mocks base method.
- func (m *MockWorkService) CalvingCowList(arg0 context.Context, arg1 *cowPb.ItemsRequest, arg2 *cowPb.PaginationModel) (*cowPb.CalvingItemsResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CalvingCowList", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.CalvingItemsResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // CalvingCowList indicates an expected call of CalvingCowList.
- func (mr *MockWorkServiceMockRecorder) CalvingCowList(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalvingCowList", reflect.TypeOf((*MockWorkService)(nil).CalvingCowList), arg0, arg1, arg2)
- }
- // CowDiseaseList mocks base method.
- func (m *MockWorkService) CowDiseaseList(arg0 context.Context, arg1 *cowPb.SearchEventCowTreatmentRequest, arg2 *cowPb.PaginationModel) (*cowPb.EventCowDiseaseResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CowDiseaseList", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.EventCowDiseaseResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // CowDiseaseList indicates an expected call of CowDiseaseList.
- func (mr *MockWorkServiceMockRecorder) CowDiseaseList(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CowDiseaseList", reflect.TypeOf((*MockWorkService)(nil).CowDiseaseList), arg0, arg1, arg2)
- }
- // EstrusList mocks base method.
- func (m *MockWorkService) EstrusList(arg0 context.Context, arg1 *cowPb.EstrusItemsRequest, arg2 *cowPb.PaginationModel) (*cowPb.EstrusItemsResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "EstrusList", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.EstrusItemsResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // EstrusList indicates an expected call of EstrusList.
- func (mr *MockWorkServiceMockRecorder) EstrusList(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EstrusList", reflect.TypeOf((*MockWorkService)(nil).EstrusList), arg0, arg1, arg2)
- }
- // ImmunisationCowList mocks base method.
- func (m *MockWorkService) ImmunisationCowList(arg0 context.Context, arg1 *cowPb.ItemsRequest, arg2 *cowPb.PaginationModel) (*cowPb.ImmunizationItemsResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "ImmunisationCowList", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.ImmunizationItemsResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // ImmunisationCowList indicates an expected call of ImmunisationCowList.
- func (mr *MockWorkServiceMockRecorder) ImmunisationCowList(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImmunisationCowList", reflect.TypeOf((*MockWorkService)(nil).ImmunisationCowList), arg0, arg1, arg2)
- }
- // MatingCowList mocks base method.
- func (m *MockWorkService) MatingCowList(arg0 context.Context, arg1 *cowPb.ItemsRequest, arg2 *cowPb.PaginationModel) (*cowPb.MatingItemsResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "MatingCowList", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.MatingItemsResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // MatingCowList indicates an expected call of MatingCowList.
- func (mr *MockWorkServiceMockRecorder) MatingCowList(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MatingCowList", reflect.TypeOf((*MockWorkService)(nil).MatingCowList), arg0, arg1, arg2)
- }
- // OrderCreateOrUpdate mocks base method.
- func (m *MockWorkService) OrderCreateOrUpdate(arg0 context.Context, arg1 *cowPb.WorkOrderList) error {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "OrderCreateOrUpdate", arg0, arg1)
- ret0, _ := ret[0].(error)
- return ret0
- }
- // OrderCreateOrUpdate indicates an expected call of OrderCreateOrUpdate.
- func (mr *MockWorkServiceMockRecorder) OrderCreateOrUpdate(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OrderCreateOrUpdate", reflect.TypeOf((*MockWorkService)(nil).OrderCreateOrUpdate), arg0, arg1)
- }
- // OrderIsShow mocks base method.
- func (m *MockWorkService) OrderIsShow(arg0 context.Context, arg1 int64) error {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "OrderIsShow", arg0, arg1)
- ret0, _ := ret[0].(error)
- return ret0
- }
- // OrderIsShow indicates an expected call of OrderIsShow.
- func (mr *MockWorkServiceMockRecorder) OrderIsShow(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OrderIsShow", reflect.TypeOf((*MockWorkService)(nil).OrderIsShow), arg0, arg1)
- }
- // OrderList mocks base method.
- func (m *MockWorkService) OrderList(arg0 context.Context, arg1 *cowPb.SearchWorkOrderRequest, arg2 *cowPb.PaginationModel) (*cowPb.SearchWorkOrderResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "OrderList", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.SearchWorkOrderResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // OrderList indicates an expected call of OrderList.
- func (mr *MockWorkServiceMockRecorder) OrderList(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OrderList", reflect.TypeOf((*MockWorkService)(nil).OrderList), arg0, arg1, arg2)
- }
- // PregnancyCheckCowList mocks base method.
- func (m *MockWorkService) PregnancyCheckCowList(arg0 context.Context, arg1 *cowPb.ItemsRequest, arg2 *cowPb.PaginationModel) (*cowPb.PregnancyCheckItemsResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "PregnancyCheckCowList", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.PregnancyCheckItemsResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // PregnancyCheckCowList indicates an expected call of PregnancyCheckCowList.
- func (mr *MockWorkServiceMockRecorder) PregnancyCheckCowList(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PregnancyCheckCowList", reflect.TypeOf((*MockWorkService)(nil).PregnancyCheckCowList), arg0, arg1, arg2)
- }
- // SameTimeCowList mocks base method.
- func (m *MockWorkService) SameTimeCowList(arg0 context.Context, arg1 *cowPb.ItemsRequest, arg2 *cowPb.PaginationModel) (*cowPb.SameTimeItemResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "SameTimeCowList", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.SameTimeItemResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // SameTimeCowList indicates an expected call of SameTimeCowList.
- func (mr *MockWorkServiceMockRecorder) SameTimeCowList(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SameTimeCowList", reflect.TypeOf((*MockWorkService)(nil).SameTimeCowList), arg0, arg1, arg2)
- }
- // UserWorkOrderList mocks base method.
- func (m *MockWorkService) UserWorkOrderList(arg0 context.Context, arg1 cowPb.WorkOrderStatus_Kind, arg2 *cowPb.PaginationModel) (*cowPb.UserWorkOrderResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "UserWorkOrderList", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.UserWorkOrderResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // UserWorkOrderList indicates an expected call of UserWorkOrderList.
- func (mr *MockWorkServiceMockRecorder) UserWorkOrderList(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserWorkOrderList", reflect.TypeOf((*MockWorkService)(nil).UserWorkOrderList), arg0, arg1, arg2)
- }
- // WeaningCowList mocks base method.
- func (m *MockWorkService) WeaningCowList(arg0 context.Context, arg1 *cowPb.ItemsRequest, arg2 *cowPb.PaginationModel) (*cowPb.WeaningItemsResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "WeaningCowList", arg0, arg1, arg2)
- ret0, _ := ret[0].(*cowPb.WeaningItemsResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // WeaningCowList indicates an expected call of WeaningCowList.
- func (mr *MockWorkServiceMockRecorder) WeaningCowList(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WeaningCowList", reflect.TypeOf((*MockWorkService)(nil).WeaningCowList), arg0, arg1, arg2)
- }
|