Documentation
¶
Index ¶
- type AddItemLogic
- type CheckStockLogic
- type ClearCartLogic
- type GetCartLogic
- type GetSelectedItemsLogic
- type ProductService
- func (_m *ProductService) CreateCategory(ctx context.Context, in *product.CreateCategoryRequest, ...) (*product.CreateCategoryResponse, error)
- func (_m *ProductService) CreateProduct(ctx context.Context, in *product.CreateProductRequest, opts ...grpc.CallOption) (*product.CreateProductResponse, error)
- func (_m *ProductService) CreateReview(ctx context.Context, in *product.CreateReviewRequest, opts ...grpc.CallOption) (*product.CreateReviewResponse, error)
- func (_m *ProductService) CreateSku(ctx context.Context, in *product.CreateSkuRequest, opts ...grpc.CallOption) (*product.CreateSkuResponse, error)
- func (_m *ProductService) DeleteCategory(ctx context.Context, in *product.DeleteCategoryRequest, ...) (*product.DeleteCategoryResponse, error)
- func (_m *ProductService) DeleteProduct(ctx context.Context, in *product.DeleteProductRequest, opts ...grpc.CallOption) (*product.DeleteProductResponse, error)
- func (_m *ProductService) DeleteReview(ctx context.Context, in *product.DeleteReviewRequest, opts ...grpc.CallOption) (*product.DeleteReviewResponse, error)
- func (_m *ProductService) DeleteSku(ctx context.Context, in *product.DeleteSkuRequest, opts ...grpc.CallOption) (*product.DeleteSkuResponse, error)
- func (_m *ProductService) EXPECT() *ProductService_Expecter
- func (_m *ProductService) GetCategories(ctx context.Context, in *product.Empty, opts ...grpc.CallOption) (*product.GetCategoriesResponse, error)
- func (_m *ProductService) GetCategory(ctx context.Context, in *product.GetCategoryRequest, opts ...grpc.CallOption) (*product.GetCategoryResponse, error)
- func (_m *ProductService) GetProduct(ctx context.Context, in *product.GetProductRequest, opts ...grpc.CallOption) (*product.GetProductResponse, error)
- func (_m *ProductService) GetSku(ctx context.Context, in *product.GetSkuRequest, opts ...grpc.CallOption) (*product.GetSkuResponse, error)
- func (_m *ProductService) ListCategories(ctx context.Context, in *product.ListCategoriesRequest, ...) (*product.ListCategoriesResponse, error)
- func (_m *ProductService) ListProducts(ctx context.Context, in *product.ListProductsRequest, opts ...grpc.CallOption) (*product.ListProductsResponse, error)
- func (_m *ProductService) ListReviews(ctx context.Context, in *product.ListReviewsRequest, opts ...grpc.CallOption) (*product.ListReviewsResponse, error)
- func (_m *ProductService) ListSkus(ctx context.Context, in *product.ListSkusRequest, opts ...grpc.CallOption) (*product.ListSkusResponse, error)
- func (_m *ProductService) UpdateCategory(ctx context.Context, in *product.UpdateCategoryRequest, ...) (*product.UpdateCategoryResponse, error)
- func (_m *ProductService) UpdateProduct(ctx context.Context, in *product.UpdateProductRequest, opts ...grpc.CallOption) (*product.UpdateProductResponse, error)
- func (_m *ProductService) UpdateReview(ctx context.Context, in *product.UpdateReviewRequest, opts ...grpc.CallOption) (*product.UpdateReviewResponse, error)
- func (_m *ProductService) UpdateSku(ctx context.Context, in *product.UpdateSkuRequest, opts ...grpc.CallOption) (*product.UpdateSkuResponse, error)
- type ProductService_CreateCategory_Call
- func (_c *ProductService_CreateCategory_Call) Return(_a0 *product.CreateCategoryResponse, _a1 error) *ProductService_CreateCategory_Call
- func (_c *ProductService_CreateCategory_Call) Run(run func(ctx context.Context, in *product.CreateCategoryRequest, ...)) *ProductService_CreateCategory_Call
- func (_c *ProductService_CreateCategory_Call) RunAndReturn(...) *ProductService_CreateCategory_Call
- type ProductService_CreateProduct_Call
- func (_c *ProductService_CreateProduct_Call) Return(_a0 *product.CreateProductResponse, _a1 error) *ProductService_CreateProduct_Call
- func (_c *ProductService_CreateProduct_Call) Run(...) *ProductService_CreateProduct_Call
- func (_c *ProductService_CreateProduct_Call) RunAndReturn(...) *ProductService_CreateProduct_Call
- type ProductService_CreateReview_Call
- func (_c *ProductService_CreateReview_Call) Return(_a0 *product.CreateReviewResponse, _a1 error) *ProductService_CreateReview_Call
- func (_c *ProductService_CreateReview_Call) Run(...) *ProductService_CreateReview_Call
- func (_c *ProductService_CreateReview_Call) RunAndReturn(...) *ProductService_CreateReview_Call
- type ProductService_CreateSku_Call
- type ProductService_DeleteCategory_Call
- func (_c *ProductService_DeleteCategory_Call) Return(_a0 *product.DeleteCategoryResponse, _a1 error) *ProductService_DeleteCategory_Call
- func (_c *ProductService_DeleteCategory_Call) Run(run func(ctx context.Context, in *product.DeleteCategoryRequest, ...)) *ProductService_DeleteCategory_Call
- func (_c *ProductService_DeleteCategory_Call) RunAndReturn(...) *ProductService_DeleteCategory_Call
- type ProductService_DeleteProduct_Call
- func (_c *ProductService_DeleteProduct_Call) Return(_a0 *product.DeleteProductResponse, _a1 error) *ProductService_DeleteProduct_Call
- func (_c *ProductService_DeleteProduct_Call) Run(...) *ProductService_DeleteProduct_Call
- func (_c *ProductService_DeleteProduct_Call) RunAndReturn(...) *ProductService_DeleteProduct_Call
- type ProductService_DeleteReview_Call
- func (_c *ProductService_DeleteReview_Call) Return(_a0 *product.DeleteReviewResponse, _a1 error) *ProductService_DeleteReview_Call
- func (_c *ProductService_DeleteReview_Call) Run(...) *ProductService_DeleteReview_Call
- func (_c *ProductService_DeleteReview_Call) RunAndReturn(...) *ProductService_DeleteReview_Call
- type ProductService_DeleteSku_Call
- type ProductService_Expecter
- func (_e *ProductService_Expecter) CreateCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateCategory_Call
- func (_e *ProductService_Expecter) CreateProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateProduct_Call
- func (_e *ProductService_Expecter) CreateReview(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateReview_Call
- func (_e *ProductService_Expecter) CreateSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateSku_Call
- func (_e *ProductService_Expecter) DeleteCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteCategory_Call
- func (_e *ProductService_Expecter) DeleteProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteProduct_Call
- func (_e *ProductService_Expecter) DeleteReview(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteReview_Call
- func (_e *ProductService_Expecter) DeleteSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteSku_Call
- func (_e *ProductService_Expecter) GetCategories(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetCategories_Call
- func (_e *ProductService_Expecter) GetCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetCategory_Call
- func (_e *ProductService_Expecter) GetProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetProduct_Call
- func (_e *ProductService_Expecter) GetSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetSku_Call
- func (_e *ProductService_Expecter) ListCategories(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListCategories_Call
- func (_e *ProductService_Expecter) ListProducts(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListProducts_Call
- func (_e *ProductService_Expecter) ListReviews(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListReviews_Call
- func (_e *ProductService_Expecter) ListSkus(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListSkus_Call
- func (_e *ProductService_Expecter) UpdateCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateCategory_Call
- func (_e *ProductService_Expecter) UpdateProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateProduct_Call
- func (_e *ProductService_Expecter) UpdateReview(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateReview_Call
- func (_e *ProductService_Expecter) UpdateSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateSku_Call
- type ProductService_GetCategories_Call
- func (_c *ProductService_GetCategories_Call) Return(_a0 *product.GetCategoriesResponse, _a1 error) *ProductService_GetCategories_Call
- func (_c *ProductService_GetCategories_Call) Run(run func(ctx context.Context, in *product.Empty, opts ...grpc.CallOption)) *ProductService_GetCategories_Call
- func (_c *ProductService_GetCategories_Call) RunAndReturn(...) *ProductService_GetCategories_Call
- type ProductService_GetCategory_Call
- func (_c *ProductService_GetCategory_Call) Return(_a0 *product.GetCategoryResponse, _a1 error) *ProductService_GetCategory_Call
- func (_c *ProductService_GetCategory_Call) Run(...) *ProductService_GetCategory_Call
- func (_c *ProductService_GetCategory_Call) RunAndReturn(...) *ProductService_GetCategory_Call
- type ProductService_GetProduct_Call
- type ProductService_GetSku_Call
- type ProductService_ListCategories_Call
- func (_c *ProductService_ListCategories_Call) Return(_a0 *product.ListCategoriesResponse, _a1 error) *ProductService_ListCategories_Call
- func (_c *ProductService_ListCategories_Call) Run(run func(ctx context.Context, in *product.ListCategoriesRequest, ...)) *ProductService_ListCategories_Call
- func (_c *ProductService_ListCategories_Call) RunAndReturn(...) *ProductService_ListCategories_Call
- type ProductService_ListProducts_Call
- func (_c *ProductService_ListProducts_Call) Return(_a0 *product.ListProductsResponse, _a1 error) *ProductService_ListProducts_Call
- func (_c *ProductService_ListProducts_Call) Run(...) *ProductService_ListProducts_Call
- func (_c *ProductService_ListProducts_Call) RunAndReturn(...) *ProductService_ListProducts_Call
- type ProductService_ListReviews_Call
- func (_c *ProductService_ListReviews_Call) Return(_a0 *product.ListReviewsResponse, _a1 error) *ProductService_ListReviews_Call
- func (_c *ProductService_ListReviews_Call) Run(...) *ProductService_ListReviews_Call
- func (_c *ProductService_ListReviews_Call) RunAndReturn(...) *ProductService_ListReviews_Call
- type ProductService_ListSkus_Call
- type ProductService_UpdateCategory_Call
- func (_c *ProductService_UpdateCategory_Call) Return(_a0 *product.UpdateCategoryResponse, _a1 error) *ProductService_UpdateCategory_Call
- func (_c *ProductService_UpdateCategory_Call) Run(run func(ctx context.Context, in *product.UpdateCategoryRequest, ...)) *ProductService_UpdateCategory_Call
- func (_c *ProductService_UpdateCategory_Call) RunAndReturn(...) *ProductService_UpdateCategory_Call
- type ProductService_UpdateProduct_Call
- func (_c *ProductService_UpdateProduct_Call) Return(_a0 *product.UpdateProductResponse, _a1 error) *ProductService_UpdateProduct_Call
- func (_c *ProductService_UpdateProduct_Call) Run(...) *ProductService_UpdateProduct_Call
- func (_c *ProductService_UpdateProduct_Call) RunAndReturn(...) *ProductService_UpdateProduct_Call
- type ProductService_UpdateReview_Call
- func (_c *ProductService_UpdateReview_Call) Return(_a0 *product.UpdateReviewResponse, _a1 error) *ProductService_UpdateReview_Call
- func (_c *ProductService_UpdateReview_Call) Run(...) *ProductService_UpdateReview_Call
- func (_c *ProductService_UpdateReview_Call) RunAndReturn(...) *ProductService_UpdateReview_Call
- type ProductService_UpdateSku_Call
- type RemoveItemLogic
- type SelectAllLogic
- type SelectItemLogic
- type UnselectAllLogic
- type UnselectItemLogic
- type UpdateItemLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddItemLogic ¶
func NewAddItemLogic ¶
func NewAddItemLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddItemLogic
func (*AddItemLogic) AddItem ¶
func (l *AddItemLogic) AddItem(in *cart.AddItemRequest) (*cart.AddItemResponse, error)
购物车操作
type CheckStockLogic ¶
func NewCheckStockLogic ¶
func NewCheckStockLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CheckStockLogic
func (*CheckStockLogic) CheckStock ¶
func (l *CheckStockLogic) CheckStock(in *cart.CheckStockRequest) (*cart.CheckStockResponse, error)
type ClearCartLogic ¶
func NewClearCartLogic ¶
func NewClearCartLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ClearCartLogic
func (*ClearCartLogic) ClearCart ¶
func (l *ClearCartLogic) ClearCart(in *cart.ClearCartRequest) (*cart.ClearCartResponse, error)
type GetCartLogic ¶
func NewGetCartLogic ¶
func NewGetCartLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetCartLogic
func (*GetCartLogic) GetCart ¶
func (l *GetCartLogic) GetCart(in *cart.GetCartRequest) (*cart.GetCartResponse, error)
type GetSelectedItemsLogic ¶
func NewGetSelectedItemsLogic ¶
func NewGetSelectedItemsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetSelectedItemsLogic
func (*GetSelectedItemsLogic) GetSelectedItems ¶
func (l *GetSelectedItemsLogic) GetSelectedItems(in *cart.GetSelectedItemsRequest) (*cart.GetSelectedItemsResponse, error)
结算相关
type ProductService ¶
ProductService is an autogenerated mock type for the ProductService type
func NewProductService ¶
func NewProductService(t interface { mock.TestingT Cleanup(func()) }) *ProductService
NewProductService creates a new instance of ProductService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ProductService) CreateCategory ¶
func (_m *ProductService) CreateCategory(ctx context.Context, in *product.CreateCategoryRequest, opts ...grpc.CallOption) (*product.CreateCategoryResponse, error)
CreateCategory provides a mock function with given fields: ctx, in, opts
func (*ProductService) CreateProduct ¶
func (_m *ProductService) CreateProduct(ctx context.Context, in *product.CreateProductRequest, opts ...grpc.CallOption) (*product.CreateProductResponse, error)
CreateProduct provides a mock function with given fields: ctx, in, opts
func (*ProductService) CreateReview ¶
func (_m *ProductService) CreateReview(ctx context.Context, in *product.CreateReviewRequest, opts ...grpc.CallOption) (*product.CreateReviewResponse, error)
CreateReview provides a mock function with given fields: ctx, in, opts
func (*ProductService) CreateSku ¶
func (_m *ProductService) CreateSku(ctx context.Context, in *product.CreateSkuRequest, opts ...grpc.CallOption) (*product.CreateSkuResponse, error)
CreateSku provides a mock function with given fields: ctx, in, opts
func (*ProductService) DeleteCategory ¶
func (_m *ProductService) DeleteCategory(ctx context.Context, in *product.DeleteCategoryRequest, opts ...grpc.CallOption) (*product.DeleteCategoryResponse, error)
DeleteCategory provides a mock function with given fields: ctx, in, opts
func (*ProductService) DeleteProduct ¶
func (_m *ProductService) DeleteProduct(ctx context.Context, in *product.DeleteProductRequest, opts ...grpc.CallOption) (*product.DeleteProductResponse, error)
DeleteProduct provides a mock function with given fields: ctx, in, opts
func (*ProductService) DeleteReview ¶
func (_m *ProductService) DeleteReview(ctx context.Context, in *product.DeleteReviewRequest, opts ...grpc.CallOption) (*product.DeleteReviewResponse, error)
DeleteReview provides a mock function with given fields: ctx, in, opts
func (*ProductService) DeleteSku ¶
func (_m *ProductService) DeleteSku(ctx context.Context, in *product.DeleteSkuRequest, opts ...grpc.CallOption) (*product.DeleteSkuResponse, error)
DeleteSku provides a mock function with given fields: ctx, in, opts
func (*ProductService) EXPECT ¶
func (_m *ProductService) EXPECT() *ProductService_Expecter
func (*ProductService) GetCategories ¶
func (_m *ProductService) GetCategories(ctx context.Context, in *product.Empty, opts ...grpc.CallOption) (*product.GetCategoriesResponse, error)
GetCategories provides a mock function with given fields: ctx, in, opts
func (*ProductService) GetCategory ¶
func (_m *ProductService) GetCategory(ctx context.Context, in *product.GetCategoryRequest, opts ...grpc.CallOption) (*product.GetCategoryResponse, error)
GetCategory provides a mock function with given fields: ctx, in, opts
func (*ProductService) GetProduct ¶
func (_m *ProductService) GetProduct(ctx context.Context, in *product.GetProductRequest, opts ...grpc.CallOption) (*product.GetProductResponse, error)
GetProduct provides a mock function with given fields: ctx, in, opts
func (*ProductService) GetSku ¶
func (_m *ProductService) GetSku(ctx context.Context, in *product.GetSkuRequest, opts ...grpc.CallOption) (*product.GetSkuResponse, error)
GetSku provides a mock function with given fields: ctx, in, opts
func (*ProductService) ListCategories ¶
func (_m *ProductService) ListCategories(ctx context.Context, in *product.ListCategoriesRequest, opts ...grpc.CallOption) (*product.ListCategoriesResponse, error)
ListCategories provides a mock function with given fields: ctx, in, opts
func (*ProductService) ListProducts ¶
func (_m *ProductService) ListProducts(ctx context.Context, in *product.ListProductsRequest, opts ...grpc.CallOption) (*product.ListProductsResponse, error)
ListProducts provides a mock function with given fields: ctx, in, opts
func (*ProductService) ListReviews ¶
func (_m *ProductService) ListReviews(ctx context.Context, in *product.ListReviewsRequest, opts ...grpc.CallOption) (*product.ListReviewsResponse, error)
ListReviews provides a mock function with given fields: ctx, in, opts
func (*ProductService) ListSkus ¶
func (_m *ProductService) ListSkus(ctx context.Context, in *product.ListSkusRequest, opts ...grpc.CallOption) (*product.ListSkusResponse, error)
ListSkus provides a mock function with given fields: ctx, in, opts
func (*ProductService) UpdateCategory ¶
func (_m *ProductService) UpdateCategory(ctx context.Context, in *product.UpdateCategoryRequest, opts ...grpc.CallOption) (*product.UpdateCategoryResponse, error)
UpdateCategory provides a mock function with given fields: ctx, in, opts
func (*ProductService) UpdateProduct ¶
func (_m *ProductService) UpdateProduct(ctx context.Context, in *product.UpdateProductRequest, opts ...grpc.CallOption) (*product.UpdateProductResponse, error)
UpdateProduct provides a mock function with given fields: ctx, in, opts
func (*ProductService) UpdateReview ¶
func (_m *ProductService) UpdateReview(ctx context.Context, in *product.UpdateReviewRequest, opts ...grpc.CallOption) (*product.UpdateReviewResponse, error)
UpdateReview provides a mock function with given fields: ctx, in, opts
func (*ProductService) UpdateSku ¶
func (_m *ProductService) UpdateSku(ctx context.Context, in *product.UpdateSkuRequest, opts ...grpc.CallOption) (*product.UpdateSkuResponse, error)
UpdateSku provides a mock function with given fields: ctx, in, opts
type ProductService_CreateCategory_Call ¶
ProductService_CreateCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCategory'
func (*ProductService_CreateCategory_Call) Return ¶
func (_c *ProductService_CreateCategory_Call) Return(_a0 *product.CreateCategoryResponse, _a1 error) *ProductService_CreateCategory_Call
func (*ProductService_CreateCategory_Call) Run ¶
func (_c *ProductService_CreateCategory_Call) Run(run func(ctx context.Context, in *product.CreateCategoryRequest, opts ...grpc.CallOption)) *ProductService_CreateCategory_Call
func (*ProductService_CreateCategory_Call) RunAndReturn ¶
func (_c *ProductService_CreateCategory_Call) RunAndReturn(run func(context.Context, *product.CreateCategoryRequest, ...grpc.CallOption) (*product.CreateCategoryResponse, error)) *ProductService_CreateCategory_Call
type ProductService_CreateProduct_Call ¶
ProductService_CreateProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateProduct'
func (*ProductService_CreateProduct_Call) Return ¶
func (_c *ProductService_CreateProduct_Call) Return(_a0 *product.CreateProductResponse, _a1 error) *ProductService_CreateProduct_Call
func (*ProductService_CreateProduct_Call) Run ¶
func (_c *ProductService_CreateProduct_Call) Run(run func(ctx context.Context, in *product.CreateProductRequest, opts ...grpc.CallOption)) *ProductService_CreateProduct_Call
func (*ProductService_CreateProduct_Call) RunAndReturn ¶
func (_c *ProductService_CreateProduct_Call) RunAndReturn(run func(context.Context, *product.CreateProductRequest, ...grpc.CallOption) (*product.CreateProductResponse, error)) *ProductService_CreateProduct_Call
type ProductService_CreateReview_Call ¶
ProductService_CreateReview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateReview'
func (*ProductService_CreateReview_Call) Return ¶
func (_c *ProductService_CreateReview_Call) Return(_a0 *product.CreateReviewResponse, _a1 error) *ProductService_CreateReview_Call
func (*ProductService_CreateReview_Call) Run ¶
func (_c *ProductService_CreateReview_Call) Run(run func(ctx context.Context, in *product.CreateReviewRequest, opts ...grpc.CallOption)) *ProductService_CreateReview_Call
func (*ProductService_CreateReview_Call) RunAndReturn ¶
func (_c *ProductService_CreateReview_Call) RunAndReturn(run func(context.Context, *product.CreateReviewRequest, ...grpc.CallOption) (*product.CreateReviewResponse, error)) *ProductService_CreateReview_Call
type ProductService_CreateSku_Call ¶
ProductService_CreateSku_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSku'
func (*ProductService_CreateSku_Call) Return ¶
func (_c *ProductService_CreateSku_Call) Return(_a0 *product.CreateSkuResponse, _a1 error) *ProductService_CreateSku_Call
func (*ProductService_CreateSku_Call) Run ¶
func (_c *ProductService_CreateSku_Call) Run(run func(ctx context.Context, in *product.CreateSkuRequest, opts ...grpc.CallOption)) *ProductService_CreateSku_Call
func (*ProductService_CreateSku_Call) RunAndReturn ¶
func (_c *ProductService_CreateSku_Call) RunAndReturn(run func(context.Context, *product.CreateSkuRequest, ...grpc.CallOption) (*product.CreateSkuResponse, error)) *ProductService_CreateSku_Call
type ProductService_DeleteCategory_Call ¶
ProductService_DeleteCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCategory'
func (*ProductService_DeleteCategory_Call) Return ¶
func (_c *ProductService_DeleteCategory_Call) Return(_a0 *product.DeleteCategoryResponse, _a1 error) *ProductService_DeleteCategory_Call
func (*ProductService_DeleteCategory_Call) Run ¶
func (_c *ProductService_DeleteCategory_Call) Run(run func(ctx context.Context, in *product.DeleteCategoryRequest, opts ...grpc.CallOption)) *ProductService_DeleteCategory_Call
func (*ProductService_DeleteCategory_Call) RunAndReturn ¶
func (_c *ProductService_DeleteCategory_Call) RunAndReturn(run func(context.Context, *product.DeleteCategoryRequest, ...grpc.CallOption) (*product.DeleteCategoryResponse, error)) *ProductService_DeleteCategory_Call
type ProductService_DeleteProduct_Call ¶
ProductService_DeleteProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteProduct'
func (*ProductService_DeleteProduct_Call) Return ¶
func (_c *ProductService_DeleteProduct_Call) Return(_a0 *product.DeleteProductResponse, _a1 error) *ProductService_DeleteProduct_Call
func (*ProductService_DeleteProduct_Call) Run ¶
func (_c *ProductService_DeleteProduct_Call) Run(run func(ctx context.Context, in *product.DeleteProductRequest, opts ...grpc.CallOption)) *ProductService_DeleteProduct_Call
func (*ProductService_DeleteProduct_Call) RunAndReturn ¶
func (_c *ProductService_DeleteProduct_Call) RunAndReturn(run func(context.Context, *product.DeleteProductRequest, ...grpc.CallOption) (*product.DeleteProductResponse, error)) *ProductService_DeleteProduct_Call
type ProductService_DeleteReview_Call ¶
ProductService_DeleteReview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteReview'
func (*ProductService_DeleteReview_Call) Return ¶
func (_c *ProductService_DeleteReview_Call) Return(_a0 *product.DeleteReviewResponse, _a1 error) *ProductService_DeleteReview_Call
func (*ProductService_DeleteReview_Call) Run ¶
func (_c *ProductService_DeleteReview_Call) Run(run func(ctx context.Context, in *product.DeleteReviewRequest, opts ...grpc.CallOption)) *ProductService_DeleteReview_Call
func (*ProductService_DeleteReview_Call) RunAndReturn ¶
func (_c *ProductService_DeleteReview_Call) RunAndReturn(run func(context.Context, *product.DeleteReviewRequest, ...grpc.CallOption) (*product.DeleteReviewResponse, error)) *ProductService_DeleteReview_Call
type ProductService_DeleteSku_Call ¶
ProductService_DeleteSku_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSku'
func (*ProductService_DeleteSku_Call) Return ¶
func (_c *ProductService_DeleteSku_Call) Return(_a0 *product.DeleteSkuResponse, _a1 error) *ProductService_DeleteSku_Call
func (*ProductService_DeleteSku_Call) Run ¶
func (_c *ProductService_DeleteSku_Call) Run(run func(ctx context.Context, in *product.DeleteSkuRequest, opts ...grpc.CallOption)) *ProductService_DeleteSku_Call
func (*ProductService_DeleteSku_Call) RunAndReturn ¶
func (_c *ProductService_DeleteSku_Call) RunAndReturn(run func(context.Context, *product.DeleteSkuRequest, ...grpc.CallOption) (*product.DeleteSkuResponse, error)) *ProductService_DeleteSku_Call
type ProductService_Expecter ¶
type ProductService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProductService_Expecter) CreateCategory ¶
func (_e *ProductService_Expecter) CreateCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateCategory_Call
CreateCategory is a helper method to define mock.On call
- ctx context.Context
- in *product.CreateCategoryRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) CreateProduct ¶
func (_e *ProductService_Expecter) CreateProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateProduct_Call
CreateProduct is a helper method to define mock.On call
- ctx context.Context
- in *product.CreateProductRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) CreateReview ¶
func (_e *ProductService_Expecter) CreateReview(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateReview_Call
CreateReview is a helper method to define mock.On call
- ctx context.Context
- in *product.CreateReviewRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) CreateSku ¶
func (_e *ProductService_Expecter) CreateSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_CreateSku_Call
CreateSku is a helper method to define mock.On call
- ctx context.Context
- in *product.CreateSkuRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) DeleteCategory ¶
func (_e *ProductService_Expecter) DeleteCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteCategory_Call
DeleteCategory is a helper method to define mock.On call
- ctx context.Context
- in *product.DeleteCategoryRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) DeleteProduct ¶
func (_e *ProductService_Expecter) DeleteProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteProduct_Call
DeleteProduct is a helper method to define mock.On call
- ctx context.Context
- in *product.DeleteProductRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) DeleteReview ¶
func (_e *ProductService_Expecter) DeleteReview(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteReview_Call
DeleteReview is a helper method to define mock.On call
- ctx context.Context
- in *product.DeleteReviewRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) DeleteSku ¶
func (_e *ProductService_Expecter) DeleteSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_DeleteSku_Call
DeleteSku is a helper method to define mock.On call
- ctx context.Context
- in *product.DeleteSkuRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) GetCategories ¶
func (_e *ProductService_Expecter) GetCategories(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetCategories_Call
GetCategories is a helper method to define mock.On call
- ctx context.Context
- in *product.Empty
- opts ...grpc.CallOption
func (*ProductService_Expecter) GetCategory ¶
func (_e *ProductService_Expecter) GetCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetCategory_Call
GetCategory is a helper method to define mock.On call
- ctx context.Context
- in *product.GetCategoryRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) GetProduct ¶
func (_e *ProductService_Expecter) GetProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetProduct_Call
GetProduct is a helper method to define mock.On call
- ctx context.Context
- in *product.GetProductRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) GetSku ¶
func (_e *ProductService_Expecter) GetSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_GetSku_Call
GetSku is a helper method to define mock.On call
- ctx context.Context
- in *product.GetSkuRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) ListCategories ¶
func (_e *ProductService_Expecter) ListCategories(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListCategories_Call
ListCategories is a helper method to define mock.On call
- ctx context.Context
- in *product.ListCategoriesRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) ListProducts ¶
func (_e *ProductService_Expecter) ListProducts(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListProducts_Call
ListProducts is a helper method to define mock.On call
- ctx context.Context
- in *product.ListProductsRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) ListReviews ¶
func (_e *ProductService_Expecter) ListReviews(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListReviews_Call
ListReviews is a helper method to define mock.On call
- ctx context.Context
- in *product.ListReviewsRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) ListSkus ¶
func (_e *ProductService_Expecter) ListSkus(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_ListSkus_Call
ListSkus is a helper method to define mock.On call
- ctx context.Context
- in *product.ListSkusRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) UpdateCategory ¶
func (_e *ProductService_Expecter) UpdateCategory(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateCategory_Call
UpdateCategory is a helper method to define mock.On call
- ctx context.Context
- in *product.UpdateCategoryRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) UpdateProduct ¶
func (_e *ProductService_Expecter) UpdateProduct(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateProduct_Call
UpdateProduct is a helper method to define mock.On call
- ctx context.Context
- in *product.UpdateProductRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) UpdateReview ¶
func (_e *ProductService_Expecter) UpdateReview(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateReview_Call
UpdateReview is a helper method to define mock.On call
- ctx context.Context
- in *product.UpdateReviewRequest
- opts ...grpc.CallOption
func (*ProductService_Expecter) UpdateSku ¶
func (_e *ProductService_Expecter) UpdateSku(ctx interface{}, in interface{}, opts ...interface{}) *ProductService_UpdateSku_Call
UpdateSku is a helper method to define mock.On call
- ctx context.Context
- in *product.UpdateSkuRequest
- opts ...grpc.CallOption
type ProductService_GetCategories_Call ¶
ProductService_GetCategories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCategories'
func (*ProductService_GetCategories_Call) Return ¶
func (_c *ProductService_GetCategories_Call) Return(_a0 *product.GetCategoriesResponse, _a1 error) *ProductService_GetCategories_Call
func (*ProductService_GetCategories_Call) Run ¶
func (_c *ProductService_GetCategories_Call) Run(run func(ctx context.Context, in *product.Empty, opts ...grpc.CallOption)) *ProductService_GetCategories_Call
func (*ProductService_GetCategories_Call) RunAndReturn ¶
func (_c *ProductService_GetCategories_Call) RunAndReturn(run func(context.Context, *product.Empty, ...grpc.CallOption) (*product.GetCategoriesResponse, error)) *ProductService_GetCategories_Call
type ProductService_GetCategory_Call ¶
ProductService_GetCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCategory'
func (*ProductService_GetCategory_Call) Return ¶
func (_c *ProductService_GetCategory_Call) Return(_a0 *product.GetCategoryResponse, _a1 error) *ProductService_GetCategory_Call
func (*ProductService_GetCategory_Call) Run ¶
func (_c *ProductService_GetCategory_Call) Run(run func(ctx context.Context, in *product.GetCategoryRequest, opts ...grpc.CallOption)) *ProductService_GetCategory_Call
func (*ProductService_GetCategory_Call) RunAndReturn ¶
func (_c *ProductService_GetCategory_Call) RunAndReturn(run func(context.Context, *product.GetCategoryRequest, ...grpc.CallOption) (*product.GetCategoryResponse, error)) *ProductService_GetCategory_Call
type ProductService_GetProduct_Call ¶
ProductService_GetProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProduct'
func (*ProductService_GetProduct_Call) Return ¶
func (_c *ProductService_GetProduct_Call) Return(_a0 *product.GetProductResponse, _a1 error) *ProductService_GetProduct_Call
func (*ProductService_GetProduct_Call) Run ¶
func (_c *ProductService_GetProduct_Call) Run(run func(ctx context.Context, in *product.GetProductRequest, opts ...grpc.CallOption)) *ProductService_GetProduct_Call
func (*ProductService_GetProduct_Call) RunAndReturn ¶
func (_c *ProductService_GetProduct_Call) RunAndReturn(run func(context.Context, *product.GetProductRequest, ...grpc.CallOption) (*product.GetProductResponse, error)) *ProductService_GetProduct_Call
type ProductService_GetSku_Call ¶
ProductService_GetSku_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSku'
func (*ProductService_GetSku_Call) Return ¶
func (_c *ProductService_GetSku_Call) Return(_a0 *product.GetSkuResponse, _a1 error) *ProductService_GetSku_Call
func (*ProductService_GetSku_Call) Run ¶
func (_c *ProductService_GetSku_Call) Run(run func(ctx context.Context, in *product.GetSkuRequest, opts ...grpc.CallOption)) *ProductService_GetSku_Call
func (*ProductService_GetSku_Call) RunAndReturn ¶
func (_c *ProductService_GetSku_Call) RunAndReturn(run func(context.Context, *product.GetSkuRequest, ...grpc.CallOption) (*product.GetSkuResponse, error)) *ProductService_GetSku_Call
type ProductService_ListCategories_Call ¶
ProductService_ListCategories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCategories'
func (*ProductService_ListCategories_Call) Return ¶
func (_c *ProductService_ListCategories_Call) Return(_a0 *product.ListCategoriesResponse, _a1 error) *ProductService_ListCategories_Call
func (*ProductService_ListCategories_Call) Run ¶
func (_c *ProductService_ListCategories_Call) Run(run func(ctx context.Context, in *product.ListCategoriesRequest, opts ...grpc.CallOption)) *ProductService_ListCategories_Call
func (*ProductService_ListCategories_Call) RunAndReturn ¶
func (_c *ProductService_ListCategories_Call) RunAndReturn(run func(context.Context, *product.ListCategoriesRequest, ...grpc.CallOption) (*product.ListCategoriesResponse, error)) *ProductService_ListCategories_Call
type ProductService_ListProducts_Call ¶
ProductService_ListProducts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProducts'
func (*ProductService_ListProducts_Call) Return ¶
func (_c *ProductService_ListProducts_Call) Return(_a0 *product.ListProductsResponse, _a1 error) *ProductService_ListProducts_Call
func (*ProductService_ListProducts_Call) Run ¶
func (_c *ProductService_ListProducts_Call) Run(run func(ctx context.Context, in *product.ListProductsRequest, opts ...grpc.CallOption)) *ProductService_ListProducts_Call
func (*ProductService_ListProducts_Call) RunAndReturn ¶
func (_c *ProductService_ListProducts_Call) RunAndReturn(run func(context.Context, *product.ListProductsRequest, ...grpc.CallOption) (*product.ListProductsResponse, error)) *ProductService_ListProducts_Call
type ProductService_ListReviews_Call ¶
ProductService_ListReviews_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListReviews'
func (*ProductService_ListReviews_Call) Return ¶
func (_c *ProductService_ListReviews_Call) Return(_a0 *product.ListReviewsResponse, _a1 error) *ProductService_ListReviews_Call
func (*ProductService_ListReviews_Call) Run ¶
func (_c *ProductService_ListReviews_Call) Run(run func(ctx context.Context, in *product.ListReviewsRequest, opts ...grpc.CallOption)) *ProductService_ListReviews_Call
func (*ProductService_ListReviews_Call) RunAndReturn ¶
func (_c *ProductService_ListReviews_Call) RunAndReturn(run func(context.Context, *product.ListReviewsRequest, ...grpc.CallOption) (*product.ListReviewsResponse, error)) *ProductService_ListReviews_Call
type ProductService_ListSkus_Call ¶
ProductService_ListSkus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSkus'
func (*ProductService_ListSkus_Call) Return ¶
func (_c *ProductService_ListSkus_Call) Return(_a0 *product.ListSkusResponse, _a1 error) *ProductService_ListSkus_Call
func (*ProductService_ListSkus_Call) Run ¶
func (_c *ProductService_ListSkus_Call) Run(run func(ctx context.Context, in *product.ListSkusRequest, opts ...grpc.CallOption)) *ProductService_ListSkus_Call
func (*ProductService_ListSkus_Call) RunAndReturn ¶
func (_c *ProductService_ListSkus_Call) RunAndReturn(run func(context.Context, *product.ListSkusRequest, ...grpc.CallOption) (*product.ListSkusResponse, error)) *ProductService_ListSkus_Call
type ProductService_UpdateCategory_Call ¶
ProductService_UpdateCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCategory'
func (*ProductService_UpdateCategory_Call) Return ¶
func (_c *ProductService_UpdateCategory_Call) Return(_a0 *product.UpdateCategoryResponse, _a1 error) *ProductService_UpdateCategory_Call
func (*ProductService_UpdateCategory_Call) Run ¶
func (_c *ProductService_UpdateCategory_Call) Run(run func(ctx context.Context, in *product.UpdateCategoryRequest, opts ...grpc.CallOption)) *ProductService_UpdateCategory_Call
func (*ProductService_UpdateCategory_Call) RunAndReturn ¶
func (_c *ProductService_UpdateCategory_Call) RunAndReturn(run func(context.Context, *product.UpdateCategoryRequest, ...grpc.CallOption) (*product.UpdateCategoryResponse, error)) *ProductService_UpdateCategory_Call
type ProductService_UpdateProduct_Call ¶
ProductService_UpdateProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateProduct'
func (*ProductService_UpdateProduct_Call) Return ¶
func (_c *ProductService_UpdateProduct_Call) Return(_a0 *product.UpdateProductResponse, _a1 error) *ProductService_UpdateProduct_Call
func (*ProductService_UpdateProduct_Call) Run ¶
func (_c *ProductService_UpdateProduct_Call) Run(run func(ctx context.Context, in *product.UpdateProductRequest, opts ...grpc.CallOption)) *ProductService_UpdateProduct_Call
func (*ProductService_UpdateProduct_Call) RunAndReturn ¶
func (_c *ProductService_UpdateProduct_Call) RunAndReturn(run func(context.Context, *product.UpdateProductRequest, ...grpc.CallOption) (*product.UpdateProductResponse, error)) *ProductService_UpdateProduct_Call
type ProductService_UpdateReview_Call ¶
ProductService_UpdateReview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateReview'
func (*ProductService_UpdateReview_Call) Return ¶
func (_c *ProductService_UpdateReview_Call) Return(_a0 *product.UpdateReviewResponse, _a1 error) *ProductService_UpdateReview_Call
func (*ProductService_UpdateReview_Call) Run ¶
func (_c *ProductService_UpdateReview_Call) Run(run func(ctx context.Context, in *product.UpdateReviewRequest, opts ...grpc.CallOption)) *ProductService_UpdateReview_Call
func (*ProductService_UpdateReview_Call) RunAndReturn ¶
func (_c *ProductService_UpdateReview_Call) RunAndReturn(run func(context.Context, *product.UpdateReviewRequest, ...grpc.CallOption) (*product.UpdateReviewResponse, error)) *ProductService_UpdateReview_Call
type ProductService_UpdateSku_Call ¶
ProductService_UpdateSku_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSku'
func (*ProductService_UpdateSku_Call) Return ¶
func (_c *ProductService_UpdateSku_Call) Return(_a0 *product.UpdateSkuResponse, _a1 error) *ProductService_UpdateSku_Call
func (*ProductService_UpdateSku_Call) Run ¶
func (_c *ProductService_UpdateSku_Call) Run(run func(ctx context.Context, in *product.UpdateSkuRequest, opts ...grpc.CallOption)) *ProductService_UpdateSku_Call
func (*ProductService_UpdateSku_Call) RunAndReturn ¶
func (_c *ProductService_UpdateSku_Call) RunAndReturn(run func(context.Context, *product.UpdateSkuRequest, ...grpc.CallOption) (*product.UpdateSkuResponse, error)) *ProductService_UpdateSku_Call
type RemoveItemLogic ¶
func NewRemoveItemLogic ¶
func NewRemoveItemLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RemoveItemLogic
func (*RemoveItemLogic) RemoveItem ¶
func (l *RemoveItemLogic) RemoveItem(in *cart.RemoveItemRequest) (*cart.RemoveItemResponse, error)
type SelectAllLogic ¶
func NewSelectAllLogic ¶
func NewSelectAllLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SelectAllLogic
func (*SelectAllLogic) SelectAll ¶
func (l *SelectAllLogic) SelectAll(in *cart.SelectAllRequest) (*cart.SelectAllResponse, error)
type SelectItemLogic ¶
func NewSelectItemLogic ¶
func NewSelectItemLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SelectItemLogic
func (*SelectItemLogic) SelectItem ¶
func (l *SelectItemLogic) SelectItem(in *cart.SelectItemRequest) (*cart.SelectItemResponse, error)
商品选择
type UnselectAllLogic ¶
func NewUnselectAllLogic ¶
func NewUnselectAllLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UnselectAllLogic
func (*UnselectAllLogic) UnselectAll ¶
func (l *UnselectAllLogic) UnselectAll(in *cart.UnselectAllRequest) (*cart.UnselectAllResponse, error)
type UnselectItemLogic ¶
func NewUnselectItemLogic ¶
func NewUnselectItemLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UnselectItemLogic
func (*UnselectItemLogic) UnselectItem ¶
func (l *UnselectItemLogic) UnselectItem(in *cart.UnselectItemRequest) (*cart.UnselectItemResponse, error)
type UpdateItemLogic ¶
func NewUpdateItemLogic ¶
func NewUpdateItemLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateItemLogic
func (*UpdateItemLogic) UpdateItem ¶
func (l *UpdateItemLogic) UpdateItem(in *cart.UpdateItemRequest) (*cart.UpdateItemResponse, error)