logic

package
v0.0.0-...-3414fa2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddItemLogic

type AddItemLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewAddItemLogic

func NewAddItemLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddItemLogic

func (*AddItemLogic) AddItem

购物车操作

type CheckStockLogic

type CheckStockLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCheckStockLogic

func NewCheckStockLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CheckStockLogic

func (*CheckStockLogic) CheckStock

type ClearCartLogic

type ClearCartLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewClearCartLogic

func NewClearCartLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ClearCartLogic

func (*ClearCartLogic) ClearCart

type GetCartLogic

type GetCartLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetCartLogic

func NewGetCartLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetCartLogic

func (*GetCartLogic) GetCart

type GetSelectedItemsLogic

type GetSelectedItemsLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetSelectedItemsLogic

func NewGetSelectedItemsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetSelectedItemsLogic

func (*GetSelectedItemsLogic) GetSelectedItems

结算相关

type ProductService

type ProductService struct {
	mock.Mock
}

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

CreateCategory provides a mock function with given fields: ctx, in, opts

func (*ProductService) CreateProduct

CreateProduct provides a mock function with given fields: ctx, in, opts

func (*ProductService) CreateReview

CreateReview provides a mock function with given fields: ctx, in, opts

func (*ProductService) CreateSku

CreateSku provides a mock function with given fields: ctx, in, opts

func (*ProductService) DeleteCategory

DeleteCategory provides a mock function with given fields: ctx, in, opts

func (*ProductService) DeleteProduct

DeleteProduct provides a mock function with given fields: ctx, in, opts

func (*ProductService) DeleteReview

DeleteReview provides a mock function with given fields: ctx, in, opts

func (*ProductService) DeleteSku

DeleteSku provides a mock function with given fields: ctx, in, opts

func (*ProductService) EXPECT

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

GetCategory provides a mock function with given fields: ctx, in, opts

func (*ProductService) GetProduct

GetProduct provides a mock function with given fields: ctx, in, opts

func (*ProductService) GetSku

GetSku provides a mock function with given fields: ctx, in, opts

func (*ProductService) ListCategories

ListCategories provides a mock function with given fields: ctx, in, opts

func (*ProductService) ListProducts

ListProducts provides a mock function with given fields: ctx, in, opts

func (*ProductService) ListReviews

ListReviews provides a mock function with given fields: ctx, in, opts

func (*ProductService) ListSkus

ListSkus provides a mock function with given fields: ctx, in, opts

func (*ProductService) UpdateCategory

UpdateCategory provides a mock function with given fields: ctx, in, opts

func (*ProductService) UpdateProduct

UpdateProduct provides a mock function with given fields: ctx, in, opts

func (*ProductService) UpdateReview

UpdateReview provides a mock function with given fields: ctx, in, opts

func (*ProductService) UpdateSku

UpdateSku provides a mock function with given fields: ctx, in, opts

type ProductService_CreateCategory_Call

type ProductService_CreateCategory_Call struct {
	*mock.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 (*ProductService_CreateCategory_Call) Run

type ProductService_CreateProduct_Call

type ProductService_CreateProduct_Call struct {
	*mock.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 (*ProductService_CreateProduct_Call) Run

type ProductService_CreateReview_Call

type ProductService_CreateReview_Call struct {
	*mock.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 (*ProductService_CreateReview_Call) Run

type ProductService_CreateSku_Call

type ProductService_CreateSku_Call struct {
	*mock.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 (*ProductService_CreateSku_Call) Run

type ProductService_DeleteCategory_Call

type ProductService_DeleteCategory_Call struct {
	*mock.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 (*ProductService_DeleteCategory_Call) Run

type ProductService_DeleteProduct_Call

type ProductService_DeleteProduct_Call struct {
	*mock.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 (*ProductService_DeleteProduct_Call) Run

type ProductService_DeleteReview_Call

type ProductService_DeleteReview_Call struct {
	*mock.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 (*ProductService_DeleteReview_Call) Run

type ProductService_DeleteSku_Call

type ProductService_DeleteSku_Call struct {
	*mock.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 (*ProductService_DeleteSku_Call) Run

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

type ProductService_GetCategories_Call struct {
	*mock.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 (*ProductService_GetCategories_Call) Run

func (*ProductService_GetCategories_Call) RunAndReturn

type ProductService_GetCategory_Call

type ProductService_GetCategory_Call struct {
	*mock.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 (*ProductService_GetCategory_Call) Run

type ProductService_GetProduct_Call

type ProductService_GetProduct_Call struct {
	*mock.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 (*ProductService_GetProduct_Call) Run

type ProductService_GetSku_Call

type ProductService_GetSku_Call struct {
	*mock.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 (*ProductService_GetSku_Call) Run

func (*ProductService_GetSku_Call) RunAndReturn

type ProductService_ListCategories_Call

type ProductService_ListCategories_Call struct {
	*mock.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 (*ProductService_ListCategories_Call) Run

type ProductService_ListProducts_Call

type ProductService_ListProducts_Call struct {
	*mock.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 (*ProductService_ListProducts_Call) Run

type ProductService_ListReviews_Call

type ProductService_ListReviews_Call struct {
	*mock.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 (*ProductService_ListReviews_Call) Run

type ProductService_ListSkus_Call

type ProductService_ListSkus_Call struct {
	*mock.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 (*ProductService_ListSkus_Call) Run

type ProductService_UpdateCategory_Call

type ProductService_UpdateCategory_Call struct {
	*mock.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 (*ProductService_UpdateCategory_Call) Run

type ProductService_UpdateProduct_Call

type ProductService_UpdateProduct_Call struct {
	*mock.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 (*ProductService_UpdateProduct_Call) Run

type ProductService_UpdateReview_Call

type ProductService_UpdateReview_Call struct {
	*mock.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 (*ProductService_UpdateReview_Call) Run

type ProductService_UpdateSku_Call

type ProductService_UpdateSku_Call struct {
	*mock.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 (*ProductService_UpdateSku_Call) Run

type RemoveItemLogic

type RemoveItemLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewRemoveItemLogic

func NewRemoveItemLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RemoveItemLogic

func (*RemoveItemLogic) RemoveItem

type SelectAllLogic

type SelectAllLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSelectAllLogic

func NewSelectAllLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SelectAllLogic

func (*SelectAllLogic) SelectAll

type SelectItemLogic

type SelectItemLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSelectItemLogic

func NewSelectItemLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SelectItemLogic

func (*SelectItemLogic) SelectItem

商品选择

type UnselectAllLogic

type UnselectAllLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUnselectAllLogic

func NewUnselectAllLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UnselectAllLogic

func (*UnselectAllLogic) UnselectAll

type UnselectItemLogic

type UnselectItemLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUnselectItemLogic

func NewUnselectItemLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UnselectItemLogic

func (*UnselectItemLogic) UnselectItem

type UpdateItemLogic

type UpdateItemLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateItemLogic

func NewUpdateItemLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateItemLogic

func (*UpdateItemLogic) UpdateItem

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL