Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CartItemAddLogic ¶
CartItemAddLogic
Author: LiuFeiHua Date: 2023/12/6 15:46
func NewCartItemAddLogic ¶
func NewCartItemAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CartItemAddLogic
func (*CartItemAddLogic) CartItemAdd ¶
func (l *CartItemAddLogic) CartItemAdd(in *omsclient.CartItemAddReq) (*omsclient.CartItemAddResp, error)
CartItemAdd 添加商品进购物车 1.购物车是否已经存在商品 2.如果有,则更新数量 3.如果没有,插入数据
type CartItemClearLogic ¶
CartItemClearLogic 会员购物车
Author: LiuFeiHua Date: 2023/12/6 14:44
func NewCartItemClearLogic ¶
func NewCartItemClearLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CartItemClearLogic
func (*CartItemClearLogic) CartItemClear ¶
func (l *CartItemClearLogic) CartItemClear(in *omsclient.CartItemClearReq) (*omsclient.CartItemClearResp, error)
CartItemClear 根据会员id清空购物车
type CartItemDeleteLogic ¶
CartItemDeleteLogic
Author: LiuFeiHua Date: 2023/12/6 14:45
func NewCartItemDeleteLogic ¶
func NewCartItemDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CartItemDeleteLogic
func (*CartItemDeleteLogic) CartItemDelete ¶
func (l *CartItemDeleteLogic) CartItemDelete(in *omsclient.CartItemDeleteReq) (*omsclient.CartItemDeleteResp, error)
CartItemDelete 删除购物车中的某个商品
type CartItemListLogic ¶
CartItemListLogic
Author: LiuFeiHua Date: 2023/11/30 16:45
func NewCartItemListLogic ¶
func NewCartItemListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CartItemListLogic
func (*CartItemListLogic) CartItemList ¶
func (l *CartItemListLogic) CartItemList(in *omsclient.CartItemListReq) (*omsclient.CartItemListResp, error)
CartItemList 查询购物车列表
type CartItemUpdateLogic ¶
CartItemUpdateLogic
Author: LiuFeiHua Date: 2023/12/6 16:01
func NewCartItemUpdateLogic ¶
func NewCartItemUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CartItemUpdateLogic
func (*CartItemUpdateLogic) CartItemUpdate ¶
func (l *CartItemUpdateLogic) CartItemUpdate(in *omsclient.CartItemUpdateReq) (*omsclient.CartItemUpdateResp, error)
CartItemUpdate 更新购物车商品 1.先更加id删除原来的 2.添加新的
type CartItemUpdateQuantityLogic ¶
CartItemUpdateQuantityLogic
Author: LiuFeiHua Date: 2023/12/6 15:31
func NewCartItemUpdateQuantityLogic ¶
func NewCartItemUpdateQuantityLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CartItemUpdateQuantityLogic
func (*CartItemUpdateQuantityLogic) CartItemUpdateQuantity ¶
func (l *CartItemUpdateQuantityLogic) CartItemUpdateQuantity(in *omsclient.CartItemUpdateReq) (*omsclient.CartItemUpdateResp, error)
CartItemUpdateQuantity 修改购物车中某个商品的数量
Click to show internal directories.
Click to hide internal directories.