Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CouponQueryRequest ¶
type CouponQueryRequest struct { }
func (*CouponQueryRequest) DoInvoke ¶
func (req *CouponQueryRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*CouponQueryResponse, error)
type CouponQueryResponse ¶
type CouponQueryResponse struct { Code string `json:"code"` Msg string `json:"msg"` Data []CouponResponse `json:"data"` TraceId string `json:"traceId"` }
func (*CouponQueryResponse) IsSuccess ¶
func (response *CouponQueryResponse) IsSuccess() bool
type CouponResponse ¶
type CouponResponse struct { /** * 项目ID */ DealId int32 `json:"dealId"` /** * 项目名称 */ DealTitle string `json:"dealTitle"` /** * 项目类型,0套餐,1代金券 */ DealType int32 `json:"dealType"` /** * 券码 */ Code string `json:"code"` /** * 券有效期开始时间,单位秒 */ CouponStartTime int64 `json:"couponStartTime"` /** * 券有效期结束时间,单位秒 */ CouponEndTime int64 `json:"couponEndTime"` /** * 券对应的订单id */ OrderId int64 `json:"orderId"` /** * 项目的市场价,用于展示 */ BuyPrice string `json:"buyPrice"` /** * 下单时团购券售卖价格 */ SalePrice string `json:"salePrice"` /** * 用户购买价 */ SettlePrice string `json:"settlePrice"` /** * 券码购买平台(0美团、1点评) */ Platform int32 `json:"platform"` /** * 券使用规则 */ UseRule UserRule `json:"useRule"` /** * deal对应的菜品信息 */ MenuInfo []DealMenu `json:"menuInfo"` /** * 是否可用 */ CanUse bool `json:"canUse"` UnavailableReason string `json:"unavailableReason"` /** * 开店宝上单商家录入的项目名称,仅套餐券使用 */ RawTitle string `json:"rawTitle"` }
Click to show internal directories.
Click to hide internal directories.