// Code generated by MockGen. DO NOT EDIT. // Source: ./internal/model/mongo/order_model.go // // Generated by this command: // // mockgen -source=./internal/model/mongo/order_model.go -destination=./internal/mock/model/order_model.go -package=mock // // Package mock is a generated GoMock package. package mock import ( mongo "app-cloudep-trade-service/internal/model/mongo" context "context" reflect "reflect" mongo0 "go.mongodb.org/mongo-driver/mongo" gomock "go.uber.org/mock/gomock" ) // MockOrderModel is a mock of OrderModel interface. type MockOrderModel struct { ctrl *gomock.Controller recorder *MockOrderModelMockRecorder } // MockOrderModelMockRecorder is the mock recorder for MockOrderModel. type MockOrderModelMockRecorder struct { mock *MockOrderModel } // NewMockOrderModel creates a new mock instance. func NewMockOrderModel(ctrl *gomock.Controller) *MockOrderModel { mock := &MockOrderModel{ctrl: ctrl} mock.recorder = &MockOrderModelMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockOrderModel) EXPECT() *MockOrderModelMockRecorder { return m.recorder } // Delete mocks base method. func (m *MockOrderModel) Delete(ctx context.Context, id string) (int64, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Delete", ctx, id) ret0, _ := ret[0].(int64) ret1, _ := ret[1].(error) return ret0, ret1 } // Delete indicates an expected call of Delete. func (mr *MockOrderModelMockRecorder) Delete(ctx, id any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockOrderModel)(nil).Delete), ctx, id) } // DeleteByBusinessID mocks base method. func (m *MockOrderModel) DeleteByBusinessID(ctx context.Context, id string) (*mongo0.UpdateResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteByBusinessID", ctx, id) ret0, _ := ret[0].(*mongo0.UpdateResult) ret1, _ := ret[1].(error) return ret0, ret1 } // DeleteByBusinessID indicates an expected call of DeleteByBusinessID. func (mr *MockOrderModelMockRecorder) DeleteByBusinessID(ctx, id any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByBusinessID", reflect.TypeOf((*MockOrderModel)(nil).DeleteByBusinessID), ctx, id) } // FindOne mocks base method. func (m *MockOrderModel) FindOne(ctx context.Context, id string) (*mongo.Order, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FindOne", ctx, id) ret0, _ := ret[0].(*mongo.Order) ret1, _ := ret[1].(error) return ret0, ret1 } // FindOne indicates an expected call of FindOne. func (mr *MockOrderModelMockRecorder) FindOne(ctx, id any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindOne", reflect.TypeOf((*MockOrderModel)(nil).FindOne), ctx, id) } // FindOneBusinessID mocks base method. func (m *MockOrderModel) FindOneBusinessID(ctx context.Context, id string) (*mongo.Order, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FindOneBusinessID", ctx, id) ret0, _ := ret[0].(*mongo.Order) ret1, _ := ret[1].(error) return ret0, ret1 } // FindOneBusinessID indicates an expected call of FindOneBusinessID. func (mr *MockOrderModelMockRecorder) FindOneBusinessID(ctx, id any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindOneBusinessID", reflect.TypeOf((*MockOrderModel)(nil).FindOneBusinessID), ctx, id) } // Insert mocks base method. func (m *MockOrderModel) Insert(ctx context.Context, data *mongo.Order) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Insert", ctx, data) ret0, _ := ret[0].(error) return ret0 } // Insert indicates an expected call of Insert. func (mr *MockOrderModelMockRecorder) Insert(ctx, data any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockOrderModel)(nil).Insert), ctx, data) } // ListOrder mocks base method. func (m *MockOrderModel) ListOrder(ctx context.Context, req mongo.GetOrderListReq) ([]mongo.Order, int64, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListOrder", ctx, req) ret0, _ := ret[0].([]mongo.Order) ret1, _ := ret[1].(int64) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // ListOrder indicates an expected call of ListOrder. func (mr *MockOrderModelMockRecorder) ListOrder(ctx, req any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOrder", reflect.TypeOf((*MockOrderModel)(nil).ListOrder), ctx, req) } // Update mocks base method. func (m *MockOrderModel) Update(ctx context.Context, data *mongo.Order) (*mongo0.UpdateResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Update", ctx, data) ret0, _ := ret[0].(*mongo0.UpdateResult) ret1, _ := ret[1].(error) return ret0, ret1 } // Update indicates an expected call of Update. func (mr *MockOrderModelMockRecorder) Update(ctx, data any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockOrderModel)(nil).Update), ctx, data) } // UpdateStatus mocks base method. func (m *MockOrderModel) UpdateStatus(ctx context.Context, data mongo.UpdateStatusReq) (*mongo0.UpdateResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateStatus", ctx, data) ret0, _ := ret[0].(*mongo0.UpdateResult) ret1, _ := ret[1].(error) return ret0, ret1 } // UpdateStatus indicates an expected call of UpdateStatus. func (mr *MockOrderModelMockRecorder) UpdateStatus(ctx, data any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockOrderModel)(nil).UpdateStatus), ctx, data) } // UpdateTimeoutOrder mocks base method. func (m *MockOrderModel) UpdateTimeoutOrder(ctx context.Context, req mongo.UpdateTimeoutReq) (*mongo0.UpdateResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateTimeoutOrder", ctx, req) ret0, _ := ret[0].(*mongo0.UpdateResult) ret1, _ := ret[1].(error) return ret0, ret1 } // UpdateTimeoutOrder indicates an expected call of UpdateTimeoutOrder. func (mr *MockOrderModelMockRecorder) UpdateTimeoutOrder(ctx, req any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTimeoutOrder", reflect.TypeOf((*MockOrderModel)(nil).UpdateTimeoutOrder), ctx, req) }