Documentation ¶
Overview ¶
飞猪商业化API model
Index ¶
- type AdResult
- type AlitripBpCouponinfoSyncAPIRequest
- func (r AlitripBpCouponinfoSyncAPIRequest) GetApiMethodName() string
- func (r AlitripBpCouponinfoSyncAPIRequest) GetApiParams() url.Values
- func (r AlitripBpCouponinfoSyncAPIRequest) GetParamCouponDataRequest() *CouponDataRequest
- func (r *AlitripBpCouponinfoSyncAPIRequest) SetParamCouponDataRequest(_paramCouponDataRequest *CouponDataRequest) error
- type AlitripBpCouponinfoSyncAPIResponse
- type AlitripBpCouponinfoSyncAPIResponseModel
- type CouponDataRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdResult ¶
type AdResult struct { // code Code string `json:"code,omitempty" xml:"code,omitempty"` // msg Msg string `json:"msg,omitempty" xml:"msg,omitempty"` // 成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
AdResult 结构体
type AlitripBpCouponinfoSyncAPIRequest ¶ added in v1.2.0
type AlitripBpCouponinfoSyncAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripBpCouponinfoSyncAPIRequest
飞猪广告券信息同步接口 API请求 alitrip.bp.couponinfo.sync
飞猪商业化券信息同步
func NewAlitripBpCouponinfoSyncRequest ¶
func NewAlitripBpCouponinfoSyncRequest() *AlitripBpCouponinfoSyncAPIRequest
NewAlitripBpCouponinfoSyncRequest 初始化AlitripBpCouponinfoSyncAPIRequest对象
func (AlitripBpCouponinfoSyncAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripBpCouponinfoSyncAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripBpCouponinfoSyncAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripBpCouponinfoSyncAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripBpCouponinfoSyncAPIRequest) GetParamCouponDataRequest ¶ added in v1.2.0
func (r AlitripBpCouponinfoSyncAPIRequest) GetParamCouponDataRequest() *CouponDataRequest
Get ParamCouponDataRequest Getter
func (*AlitripBpCouponinfoSyncAPIRequest) SetParamCouponDataRequest ¶ added in v1.2.0
func (r *AlitripBpCouponinfoSyncAPIRequest) SetParamCouponDataRequest(_paramCouponDataRequest *CouponDataRequest) error
Set is ParamCouponDataRequest Setter 商业化券同步接口请求
type AlitripBpCouponinfoSyncAPIResponse ¶
type AlitripBpCouponinfoSyncAPIResponse struct { model.CommonResponse AlitripBpCouponinfoSyncAPIResponseModel }
AlitripBpCouponinfoSyncAPIResponse
飞猪广告券信息同步接口 API返回值 alitrip.bp.couponinfo.sync
飞猪商业化券信息同步
type AlitripBpCouponinfoSyncAPIResponseModel ¶ added in v1.2.0
type AlitripBpCouponinfoSyncAPIResponseModel struct { XMLName xml.Name `xml:"alitrip_bp_couponinfo_sync_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回结果 Result *AdResult `json:"result,omitempty" xml:"result,omitempty"` }
AlitripBpCouponinfoSyncAPIResponseModel is 飞猪广告券信息同步接口 成功返回结果
type CouponDataRequest ¶
type CouponDataRequest struct { // 券id CouponId string `json:"coupon_id,omitempty" xml:"coupon_id,omitempty"` // 券状态 CouponStatus int64 `json:"coupon_status,omitempty" xml:"coupon_status,omitempty"` // 券失效时间 EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"` // 场景 Scene string `json:"scene,omitempty" xml:"scene,omitempty"` // 券开始有效时间 StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"` // 外部用户唯一标识 UserId string `json:"user_id,omitempty" xml:"user_id,omitempty"` // 券名称 CouponName string `json:"coupon_name,omitempty" xml:"coupon_name,omitempty"` // 券额度(单位:分) CouponPrice string `json:"coupon_price,omitempty" xml:"coupon_price,omitempty"` }
CouponDataRequest 结构体
Click to show internal directories.
Click to hide internal directories.