querycoupon

package
v0.0.0-...-905ac7b Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryCoupon

type QueryCoupon struct {
	/**
	 * 总页数
	 */
	TotalPage int32 `json:"totalPage"`
	/**
	 * 总条数
	 */
	Total int32 `json:"total"`
	/**
	 * 券配置ID
	 */
	CouponConfigId string `json:"couponConfigId"`
	/**
	 * 券名称
	 */
	CouponName string `json:"couponName"`
	/**
	 * 优惠券金额
	 */
	Price int32 `json:"price"`
	/**
	 * 使用门槛
	 */
	LimitPrice int32 `json:"limitPrice"`
	/**
	 * INIT(0,"处理中"), STARTED(1,"进行中"), FINISH(2,"已结束"), STOP(3,"已停止"),
	 */
	Status int32 `json:"status"`
	/**
	 * 活动创建时间
	 */
	CreateTime string `json:"createTime"`
	/**
	 * 活动结束时间
	 */
	EndTime string `json:"endTime"`
	/**
	 * 券领取后有效期,单位秒
	 */
	ValidTime int64 `json:"validTime"`
	/**
	 * 剩余的券数量 等于总数-已领取的
	 */
	Remain int32 `json:"remain"`
	/**
	 * 商品折扣,0到98,98代表0.98折
	 */
	Discount int32 `json:"discount"`
	/**
	 * 商品名称
	 */
	SkuName string `json:"skuName"`
	/**
	 * 券类型,1:门店满减券,2:商品券
	 */
	Category int32 `json:"category"`
}

type QueryCouponRequest

type QueryCouponRequest struct {
	/**
	 *  页码 从 1 开始
	 */
	Page int32 `json:"page"`
	/**
	 *  页数据条数
	 */
	PageSize int32 `json:"pageSize"`
}

func (*QueryCouponRequest) DoInvoke

func (req *QueryCouponRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*QueryCouponResponse, error)

type QueryCouponResponse

type QueryCouponResponse struct {
	Code    string      `json:"code"`
	Msg     string      `json:"msg"`
	Data    QueryCoupon `json:"data"`
	TraceId string      `json:"traceId"`
}

func (*QueryCouponResponse) IsSuccess

func (response *QueryCouponResponse) IsSuccess() bool

Jump to

Keyboard shortcuts

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