handler

package
v0.0.0-...-a16dd36 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cart

type Cart struct {
	CartDataService service.ICartDataService
}

func (*Cart) AddCart

func (h *Cart) AddCart(ctx context.Context, request *cart.CartInfo, response *cart.ResponseAdd) (err error)

添加购物车

func (*Cart) CleanCart

func (h *Cart) CleanCart(ctx context.Context, request *cart.Clean, response *cart.Response) error

清空购物车

func (*Cart) Decr

func (h *Cart) Decr(ctx context.Context, request *cart.Item, response *cart.Response) error

购物车减少商品数量

func (*Cart) DeleteItemByID

func (h *Cart) DeleteItemByID(ctx context.Context, request *cart.CartID, response *cart.Response) error

删除购物车

func (*Cart) GetAll

func (h *Cart) GetAll(ctx context.Context, request *cart.CartFindAll, response *cart.CartAll) error

查询用户所有的购物车信息

func (*Cart) Incr

func (h *Cart) Incr(ctx context.Context, request *cart.Item, response *cart.Response) error

添加购物车数量

Jump to

Keyboard shortcuts

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