Documentation ¶
Overview ¶
Package order is a generated GoMock package.
Index ¶
- func New(ds store.IStore) *orderBiz
- type MockOrderBiz
- func (m *MockOrderBiz) Create(arg0 context.Context, arg1 *v1.CreateOrderRequest) (*v1.CreateOrderResponse, error)
- func (m *MockOrderBiz) Delete(arg0 context.Context, arg1 *v1.DeleteOrderRequest) error
- func (m *MockOrderBiz) EXPECT() *MockOrderBizMockRecorder
- func (m *MockOrderBiz) Get(arg0 context.Context, arg1 *v1.GetOrderRequest) (*v1.OrderReply, error)
- func (m *MockOrderBiz) List(arg0 context.Context, arg1 *v1.ListOrderRequest) (*v1.ListOrderResponse, error)
- func (m *MockOrderBiz) Update(arg0 context.Context, arg1 *v1.UpdateOrderRequest) error
- type MockOrderBizMockRecorder
- func (mr *MockOrderBizMockRecorder) Create(arg0, arg1 any) *gomock.Call
- func (mr *MockOrderBizMockRecorder) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockOrderBizMockRecorder) Get(arg0, arg1 any) *gomock.Call
- func (mr *MockOrderBizMockRecorder) List(arg0, arg1 any) *gomock.Call
- func (mr *MockOrderBizMockRecorder) Update(arg0, arg1 any) *gomock.Call
- type OrderBiz
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockOrderBiz ¶
type MockOrderBiz struct {
// contains filtered or unexported fields
}
MockOrderBiz is a mock of OrderBiz interface.
func NewMockOrderBiz ¶
func NewMockOrderBiz(ctrl *gomock.Controller) *MockOrderBiz
NewMockOrderBiz creates a new mock instance.
func (*MockOrderBiz) Create ¶
func (m *MockOrderBiz) Create(arg0 context.Context, arg1 *v1.CreateOrderRequest) (*v1.CreateOrderResponse, error)
Create mocks base method.
func (*MockOrderBiz) Delete ¶
func (m *MockOrderBiz) Delete(arg0 context.Context, arg1 *v1.DeleteOrderRequest) error
Delete mocks base method.
func (*MockOrderBiz) EXPECT ¶
func (m *MockOrderBiz) EXPECT() *MockOrderBizMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOrderBiz) Get ¶
func (m *MockOrderBiz) Get(arg0 context.Context, arg1 *v1.GetOrderRequest) (*v1.OrderReply, error)
Get mocks base method.
func (*MockOrderBiz) List ¶
func (m *MockOrderBiz) List(arg0 context.Context, arg1 *v1.ListOrderRequest) (*v1.ListOrderResponse, error)
List mocks base method.
func (*MockOrderBiz) Update ¶
func (m *MockOrderBiz) Update(arg0 context.Context, arg1 *v1.UpdateOrderRequest) error
Update mocks base method.
type MockOrderBizMockRecorder ¶
type MockOrderBizMockRecorder struct {
// contains filtered or unexported fields
}
MockOrderBizMockRecorder is the mock recorder for MockOrderBiz.
func (*MockOrderBizMockRecorder) Create ¶
func (mr *MockOrderBizMockRecorder) Create(arg0, arg1 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockOrderBizMockRecorder) Delete ¶
func (mr *MockOrderBizMockRecorder) Delete(arg0, arg1 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockOrderBizMockRecorder) Get ¶
func (mr *MockOrderBizMockRecorder) Get(arg0, arg1 any) *gomock.Call
Get indicates an expected call of Get.
type OrderBiz ¶
type OrderBiz interface { Create(ctx context.Context, rq *v1.CreateOrderRequest) (*v1.CreateOrderResponse, error) List(ctx context.Context, rq *v1.ListOrderRequest) (*v1.ListOrderResponse, error) Get(ctx context.Context, rq *v1.GetOrderRequest) (*v1.OrderReply, error) Update(ctx context.Context, rq *v1.UpdateOrderRequest) error Delete(ctx context.Context, rq *v1.DeleteOrderRequest) error }
OrderBiz 定义了 order 模块在 biz 层所实现的方法.
Click to show internal directories.
Click to hide internal directories.