ums_member_coupon

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {

	/**
	 * 会员添加优惠券
	 */
	Add(ctx context.Context, couponId int64) error

	/**
	 * 获取优惠券历史列表
	 */
	ListHistory(ctx context.Context, useStatus int32) ([]dto.SmsCouponHistory, error)

	/**
	 * 根据购物车信息获取可用优惠券
	 */
	ListCart(ctx context.Context,
		cartItemList []dto.CartPromotionItem, enable int32) ([]dto.SmsCouponHistoryDetail, error)

	/**
	 * 获取当前商品相关优惠券
	 */
	ListByProduct(ctx context.Context, productId int64) ([]dto.SmsCoupon, error)

	/**
	 * 获取用户优惠券列表
	 */
	List(ctx context.Context, useStatus int32) ([]dto.SmsCoupon, error)
	// contains filtered or unexported methods
}

会员优惠券管理Service

func New

func New() Service

Jump to

Keyboard shortcuts

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