Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ./service.go
Generated by this command:
mockgen -source=./service.go -package=ordermocks -destination=../../mocks/order.mock.go -typed Service
Package ordermocks is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) CancelOrder(ctx context.Context, uid, oid int64) error
- func (m *MockService) CloseTimeoutOrders(ctx context.Context, orderIDs []int64, ctime int64) error
- func (m *MockService) CreateOrder(ctx context.Context, order domain.Order) (domain.Order, error)
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) FailOrder(ctx context.Context, uid int64, orderSN string) error
- func (m *MockService) FindTimeoutOrders(ctx context.Context, offset, limit int, ctime int64) ([]domain.Order, int64, error)
- func (m *MockService) FindUserVisibleOrderByUIDAndSN(ctx context.Context, uid int64, orderSN string) (domain.Order, error)
- func (m *MockService) FindUserVisibleOrdersByUID(ctx context.Context, uid int64, offset, limit int) ([]domain.Order, int64, error)
- func (m *MockService) SucceedOrder(ctx context.Context, uid int64, orderSN string) error
- func (m *MockService) UpdateUnpaidOrderPaymentInfo(ctx context.Context, uid, oid, pid int64, psn string) error
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) CancelOrder(ctx, uid, oid any) *ServiceCancelOrderCall
- func (mr *MockServiceMockRecorder) CloseTimeoutOrders(ctx, orderIDs, ctime any) *ServiceCloseTimeoutOrdersCall
- func (mr *MockServiceMockRecorder) CreateOrder(ctx, order any) *ServiceCreateOrderCall
- func (mr *MockServiceMockRecorder) FailOrder(ctx, uid, orderSN any) *ServiceFailOrderCall
- func (mr *MockServiceMockRecorder) FindTimeoutOrders(ctx, offset, limit, ctime any) *ServiceFindTimeoutOrdersCall
- func (mr *MockServiceMockRecorder) FindUserVisibleOrderByUIDAndSN(ctx, uid, orderSN any) *ServiceFindUserVisibleOrderByUIDAndSNCall
- func (mr *MockServiceMockRecorder) FindUserVisibleOrdersByUID(ctx, uid, offset, limit any) *ServiceFindUserVisibleOrdersByUIDCall
- func (mr *MockServiceMockRecorder) SucceedOrder(ctx, uid, orderSN any) *ServiceSucceedOrderCall
- func (mr *MockServiceMockRecorder) UpdateUnpaidOrderPaymentInfo(ctx, uid, oid, pid, psn any) *ServiceUpdateUnpaidOrderPaymentInfoCall
- type ServiceCancelOrderCall
- type ServiceCloseTimeoutOrdersCall
- func (c *ServiceCloseTimeoutOrdersCall) Do(f func(context.Context, []int64, int64) error) *ServiceCloseTimeoutOrdersCall
- func (c *ServiceCloseTimeoutOrdersCall) DoAndReturn(f func(context.Context, []int64, int64) error) *ServiceCloseTimeoutOrdersCall
- func (c *ServiceCloseTimeoutOrdersCall) Return(arg0 error) *ServiceCloseTimeoutOrdersCall
- type ServiceCreateOrderCall
- func (c *ServiceCreateOrderCall) Do(f func(context.Context, domain.Order) (domain.Order, error)) *ServiceCreateOrderCall
- func (c *ServiceCreateOrderCall) DoAndReturn(f func(context.Context, domain.Order) (domain.Order, error)) *ServiceCreateOrderCall
- func (c *ServiceCreateOrderCall) Return(arg0 domain.Order, arg1 error) *ServiceCreateOrderCall
- type ServiceFailOrderCall
- type ServiceFindTimeoutOrdersCall
- func (c *ServiceFindTimeoutOrdersCall) Do(f func(context.Context, int, int, int64) ([]domain.Order, int64, error)) *ServiceFindTimeoutOrdersCall
- func (c *ServiceFindTimeoutOrdersCall) DoAndReturn(f func(context.Context, int, int, int64) ([]domain.Order, int64, error)) *ServiceFindTimeoutOrdersCall
- func (c *ServiceFindTimeoutOrdersCall) Return(arg0 []domain.Order, arg1 int64, arg2 error) *ServiceFindTimeoutOrdersCall
- type ServiceFindUserVisibleOrderByUIDAndSNCall
- func (c *ServiceFindUserVisibleOrderByUIDAndSNCall) Do(f func(context.Context, int64, string) (domain.Order, error)) *ServiceFindUserVisibleOrderByUIDAndSNCall
- func (c *ServiceFindUserVisibleOrderByUIDAndSNCall) DoAndReturn(f func(context.Context, int64, string) (domain.Order, error)) *ServiceFindUserVisibleOrderByUIDAndSNCall
- func (c *ServiceFindUserVisibleOrderByUIDAndSNCall) Return(arg0 domain.Order, arg1 error) *ServiceFindUserVisibleOrderByUIDAndSNCall
- type ServiceFindUserVisibleOrdersByUIDCall
- func (c *ServiceFindUserVisibleOrdersByUIDCall) Do(f func(context.Context, int64, int, int) ([]domain.Order, int64, error)) *ServiceFindUserVisibleOrdersByUIDCall
- func (c *ServiceFindUserVisibleOrdersByUIDCall) DoAndReturn(f func(context.Context, int64, int, int) ([]domain.Order, int64, error)) *ServiceFindUserVisibleOrdersByUIDCall
- func (c *ServiceFindUserVisibleOrdersByUIDCall) Return(arg0 []domain.Order, arg1 int64, arg2 error) *ServiceFindUserVisibleOrdersByUIDCall
- type ServiceSucceedOrderCall
- func (c *ServiceSucceedOrderCall) Do(f func(context.Context, int64, string) error) *ServiceSucceedOrderCall
- func (c *ServiceSucceedOrderCall) DoAndReturn(f func(context.Context, int64, string) error) *ServiceSucceedOrderCall
- func (c *ServiceSucceedOrderCall) Return(arg0 error) *ServiceSucceedOrderCall
- type ServiceUpdateUnpaidOrderPaymentInfoCall
- func (c *ServiceUpdateUnpaidOrderPaymentInfoCall) Do(f func(context.Context, int64, int64, int64, string) error) *ServiceUpdateUnpaidOrderPaymentInfoCall
- func (c *ServiceUpdateUnpaidOrderPaymentInfoCall) DoAndReturn(f func(context.Context, int64, int64, int64, string) error) *ServiceUpdateUnpaidOrderPaymentInfoCall
- func (c *ServiceUpdateUnpaidOrderPaymentInfoCall) Return(arg0 error) *ServiceUpdateUnpaidOrderPaymentInfoCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) CancelOrder ¶
func (m *MockService) CancelOrder(ctx context.Context, uid, oid int64) error
CancelOrder mocks base method.
func (*MockService) CloseTimeoutOrders ¶
CloseTimeoutOrders mocks base method.
func (*MockService) CreateOrder ¶
CreateOrder mocks base method.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) FindTimeoutOrders ¶
func (m *MockService) FindTimeoutOrders(ctx context.Context, offset, limit int, ctime int64) ([]domain.Order, int64, error)
FindTimeoutOrders mocks base method.
func (*MockService) FindUserVisibleOrderByUIDAndSN ¶
func (m *MockService) FindUserVisibleOrderByUIDAndSN(ctx context.Context, uid int64, orderSN string) (domain.Order, error)
FindUserVisibleOrderByUIDAndSN mocks base method.
func (*MockService) FindUserVisibleOrdersByUID ¶
func (m *MockService) FindUserVisibleOrdersByUID(ctx context.Context, uid int64, offset, limit int) ([]domain.Order, int64, error)
FindUserVisibleOrdersByUID mocks base method.
func (*MockService) SucceedOrder ¶
SucceedOrder mocks base method.
func (*MockService) UpdateUnpaidOrderPaymentInfo ¶
func (m *MockService) UpdateUnpaidOrderPaymentInfo(ctx context.Context, uid, oid, pid int64, psn string) error
UpdateUnpaidOrderPaymentInfo mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) CancelOrder ¶
func (mr *MockServiceMockRecorder) CancelOrder(ctx, uid, oid any) *ServiceCancelOrderCall
CancelOrder indicates an expected call of CancelOrder.
func (*MockServiceMockRecorder) CloseTimeoutOrders ¶
func (mr *MockServiceMockRecorder) CloseTimeoutOrders(ctx, orderIDs, ctime any) *ServiceCloseTimeoutOrdersCall
CloseTimeoutOrders indicates an expected call of CloseTimeoutOrders.
func (*MockServiceMockRecorder) CreateOrder ¶
func (mr *MockServiceMockRecorder) CreateOrder(ctx, order any) *ServiceCreateOrderCall
CreateOrder indicates an expected call of CreateOrder.
func (*MockServiceMockRecorder) FailOrder ¶
func (mr *MockServiceMockRecorder) FailOrder(ctx, uid, orderSN any) *ServiceFailOrderCall
FailOrder indicates an expected call of FailOrder.
func (*MockServiceMockRecorder) FindTimeoutOrders ¶
func (mr *MockServiceMockRecorder) FindTimeoutOrders(ctx, offset, limit, ctime any) *ServiceFindTimeoutOrdersCall
FindTimeoutOrders indicates an expected call of FindTimeoutOrders.
func (*MockServiceMockRecorder) FindUserVisibleOrderByUIDAndSN ¶
func (mr *MockServiceMockRecorder) FindUserVisibleOrderByUIDAndSN(ctx, uid, orderSN any) *ServiceFindUserVisibleOrderByUIDAndSNCall
FindUserVisibleOrderByUIDAndSN indicates an expected call of FindUserVisibleOrderByUIDAndSN.
func (*MockServiceMockRecorder) FindUserVisibleOrdersByUID ¶
func (mr *MockServiceMockRecorder) FindUserVisibleOrdersByUID(ctx, uid, offset, limit any) *ServiceFindUserVisibleOrdersByUIDCall
FindUserVisibleOrdersByUID indicates an expected call of FindUserVisibleOrdersByUID.
func (*MockServiceMockRecorder) SucceedOrder ¶
func (mr *MockServiceMockRecorder) SucceedOrder(ctx, uid, orderSN any) *ServiceSucceedOrderCall
SucceedOrder indicates an expected call of SucceedOrder.
func (*MockServiceMockRecorder) UpdateUnpaidOrderPaymentInfo ¶
func (mr *MockServiceMockRecorder) UpdateUnpaidOrderPaymentInfo(ctx, uid, oid, pid, psn any) *ServiceUpdateUnpaidOrderPaymentInfoCall
UpdateUnpaidOrderPaymentInfo indicates an expected call of UpdateUnpaidOrderPaymentInfo.
type ServiceCancelOrderCall ¶
ServiceCancelOrderCall wrap *gomock.Call
func (*ServiceCancelOrderCall) Do ¶
func (c *ServiceCancelOrderCall) Do(f func(context.Context, int64, int64) error) *ServiceCancelOrderCall
Do rewrite *gomock.Call.Do
func (*ServiceCancelOrderCall) DoAndReturn ¶
func (c *ServiceCancelOrderCall) DoAndReturn(f func(context.Context, int64, int64) error) *ServiceCancelOrderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceCancelOrderCall) Return ¶
func (c *ServiceCancelOrderCall) Return(arg0 error) *ServiceCancelOrderCall
Return rewrite *gomock.Call.Return
type ServiceCloseTimeoutOrdersCall ¶
ServiceCloseTimeoutOrdersCall wrap *gomock.Call
func (*ServiceCloseTimeoutOrdersCall) Do ¶
func (c *ServiceCloseTimeoutOrdersCall) Do(f func(context.Context, []int64, int64) error) *ServiceCloseTimeoutOrdersCall
Do rewrite *gomock.Call.Do
func (*ServiceCloseTimeoutOrdersCall) DoAndReturn ¶
func (c *ServiceCloseTimeoutOrdersCall) DoAndReturn(f func(context.Context, []int64, int64) error) *ServiceCloseTimeoutOrdersCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceCloseTimeoutOrdersCall) Return ¶
func (c *ServiceCloseTimeoutOrdersCall) Return(arg0 error) *ServiceCloseTimeoutOrdersCall
Return rewrite *gomock.Call.Return
type ServiceCreateOrderCall ¶
ServiceCreateOrderCall wrap *gomock.Call
func (*ServiceCreateOrderCall) Do ¶
func (c *ServiceCreateOrderCall) Do(f func(context.Context, domain.Order) (domain.Order, error)) *ServiceCreateOrderCall
Do rewrite *gomock.Call.Do
func (*ServiceCreateOrderCall) DoAndReturn ¶
func (c *ServiceCreateOrderCall) DoAndReturn(f func(context.Context, domain.Order) (domain.Order, error)) *ServiceCreateOrderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceCreateOrderCall) Return ¶
func (c *ServiceCreateOrderCall) Return(arg0 domain.Order, arg1 error) *ServiceCreateOrderCall
Return rewrite *gomock.Call.Return
type ServiceFailOrderCall ¶
ServiceFailOrderCall wrap *gomock.Call
func (*ServiceFailOrderCall) Do ¶
func (c *ServiceFailOrderCall) Do(f func(context.Context, int64, string) error) *ServiceFailOrderCall
Do rewrite *gomock.Call.Do
func (*ServiceFailOrderCall) DoAndReturn ¶
func (c *ServiceFailOrderCall) DoAndReturn(f func(context.Context, int64, string) error) *ServiceFailOrderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceFailOrderCall) Return ¶
func (c *ServiceFailOrderCall) Return(arg0 error) *ServiceFailOrderCall
Return rewrite *gomock.Call.Return
type ServiceFindTimeoutOrdersCall ¶
ServiceFindTimeoutOrdersCall wrap *gomock.Call
func (*ServiceFindTimeoutOrdersCall) Do ¶
func (c *ServiceFindTimeoutOrdersCall) Do(f func(context.Context, int, int, int64) ([]domain.Order, int64, error)) *ServiceFindTimeoutOrdersCall
Do rewrite *gomock.Call.Do
func (*ServiceFindTimeoutOrdersCall) DoAndReturn ¶
func (c *ServiceFindTimeoutOrdersCall) DoAndReturn(f func(context.Context, int, int, int64) ([]domain.Order, int64, error)) *ServiceFindTimeoutOrdersCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceFindTimeoutOrdersCall) Return ¶
func (c *ServiceFindTimeoutOrdersCall) Return(arg0 []domain.Order, arg1 int64, arg2 error) *ServiceFindTimeoutOrdersCall
Return rewrite *gomock.Call.Return
type ServiceFindUserVisibleOrderByUIDAndSNCall ¶
ServiceFindUserVisibleOrderByUIDAndSNCall wrap *gomock.Call
func (*ServiceFindUserVisibleOrderByUIDAndSNCall) Do ¶
func (c *ServiceFindUserVisibleOrderByUIDAndSNCall) Do(f func(context.Context, int64, string) (domain.Order, error)) *ServiceFindUserVisibleOrderByUIDAndSNCall
Do rewrite *gomock.Call.Do
func (*ServiceFindUserVisibleOrderByUIDAndSNCall) DoAndReturn ¶
func (c *ServiceFindUserVisibleOrderByUIDAndSNCall) DoAndReturn(f func(context.Context, int64, string) (domain.Order, error)) *ServiceFindUserVisibleOrderByUIDAndSNCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceFindUserVisibleOrderByUIDAndSNCall) Return ¶
func (c *ServiceFindUserVisibleOrderByUIDAndSNCall) Return(arg0 domain.Order, arg1 error) *ServiceFindUserVisibleOrderByUIDAndSNCall
Return rewrite *gomock.Call.Return
type ServiceFindUserVisibleOrdersByUIDCall ¶
ServiceFindUserVisibleOrdersByUIDCall wrap *gomock.Call
func (*ServiceFindUserVisibleOrdersByUIDCall) Do ¶
func (c *ServiceFindUserVisibleOrdersByUIDCall) Do(f func(context.Context, int64, int, int) ([]domain.Order, int64, error)) *ServiceFindUserVisibleOrdersByUIDCall
Do rewrite *gomock.Call.Do
func (*ServiceFindUserVisibleOrdersByUIDCall) DoAndReturn ¶
func (c *ServiceFindUserVisibleOrdersByUIDCall) DoAndReturn(f func(context.Context, int64, int, int) ([]domain.Order, int64, error)) *ServiceFindUserVisibleOrdersByUIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceFindUserVisibleOrdersByUIDCall) Return ¶
func (c *ServiceFindUserVisibleOrdersByUIDCall) Return(arg0 []domain.Order, arg1 int64, arg2 error) *ServiceFindUserVisibleOrdersByUIDCall
Return rewrite *gomock.Call.Return
type ServiceSucceedOrderCall ¶
ServiceSucceedOrderCall wrap *gomock.Call
func (*ServiceSucceedOrderCall) Do ¶
func (c *ServiceSucceedOrderCall) Do(f func(context.Context, int64, string) error) *ServiceSucceedOrderCall
Do rewrite *gomock.Call.Do
func (*ServiceSucceedOrderCall) DoAndReturn ¶
func (c *ServiceSucceedOrderCall) DoAndReturn(f func(context.Context, int64, string) error) *ServiceSucceedOrderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceSucceedOrderCall) Return ¶
func (c *ServiceSucceedOrderCall) Return(arg0 error) *ServiceSucceedOrderCall
Return rewrite *gomock.Call.Return
type ServiceUpdateUnpaidOrderPaymentInfoCall ¶
ServiceUpdateUnpaidOrderPaymentInfoCall wrap *gomock.Call
func (*ServiceUpdateUnpaidOrderPaymentInfoCall) Do ¶
func (c *ServiceUpdateUnpaidOrderPaymentInfoCall) Do(f func(context.Context, int64, int64, int64, string) error) *ServiceUpdateUnpaidOrderPaymentInfoCall
Do rewrite *gomock.Call.Do
func (*ServiceUpdateUnpaidOrderPaymentInfoCall) DoAndReturn ¶
func (c *ServiceUpdateUnpaidOrderPaymentInfoCall) DoAndReturn(f func(context.Context, int64, int64, int64, string) error) *ServiceUpdateUnpaidOrderPaymentInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceUpdateUnpaidOrderPaymentInfoCall) Return ¶
func (c *ServiceUpdateUnpaidOrderPaymentInfoCall) Return(arg0 error) *ServiceUpdateUnpaidOrderPaymentInfoCall
Return rewrite *gomock.Call.Return