Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CouponConsumeData ¶
type CouponConsumeData struct { /** * 验券结果 */ Result bool `json:"result"` }
type CouponConsumeRequest ¶
type CouponConsumeRequest struct { /** * 券码 */ Codes []string `json:"codes"` /** * 幂等因子(会与授权的门店一起构造唯一请求标识校验幂等,缓存时间为5分钟) */ Idempotent string `json:"idempotent"` }
func (*CouponConsumeRequest) DoInvoke ¶
func (req *CouponConsumeRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*CouponConsumeResponse, error)
type CouponConsumeResponse ¶
type CouponConsumeResponse struct { Code string `json:"code"` Msg string `json:"msg"` Data CouponConsumeData `json:"data"` TraceId string `json:"traceId"` }
func (*CouponConsumeResponse) IsSuccess ¶
func (response *CouponConsumeResponse) IsSuccess() bool
Click to show internal directories.
Click to hide internal directories.