sms_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: 8 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 {

	/**
	 * 添加优惠券
	 */
	Create(ctx context.Context, param dto.SmsCouponParam) (int64, error)

	/**
	 * 根据优惠券id删除优惠券
	 */
	Delete(ctx context.Context, id int64) (int64, error)

	/**
	 * 根据优惠券id更新优惠券信息
	 */
	Update(ctx context.Context, id int64, param dto.SmsCouponParam) (int64, error)

	/**
	 * 分页获取优惠券列表
	 */
	List(ctx context.Context, name string, couponType int32, pageSize, pageNum int) ([]dto.SmsCoupon, int64, error)

	/**
	 * 获取优惠券详情
	 * @param id 优惠券表id
	 */
	GetItem(ctx context.Context, id int64) (*dto.SmsCouponParam, 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