alitripbp

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package alitripbp 包含飞猪商业化API相关结构体

https://open.taobao.com/API.htm?docType=2&docId=58555

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdResult

type AdResult struct {
	// 1
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 1
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 查询结果
	Model *ChannelExamineResultDto `json:"model,omitempty" xml:"model,omitempty"`
	// 1
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AdResult 结构体

type AlitripBpChannelCrowQueryAPIRequest added in v1.2.5

type AlitripBpChannelCrowQueryAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlitripBpChannelCrowQueryAPIRequest 人群匹配 API请求 alitrip.bp.channel.crow.query

判断用户是否在圈选的人群中

func NewAlitripBpChannelCrowQueryRequest added in v1.2.5

func NewAlitripBpChannelCrowQueryRequest() *AlitripBpChannelCrowQueryAPIRequest

NewAlitripBpChannelCrowQueryRequest 初始化AlitripBpChannelCrowQueryAPIRequest对象

func (AlitripBpChannelCrowQueryAPIRequest) GetApiMethodName added in v1.2.5

func (r AlitripBpChannelCrowQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlitripBpChannelCrowQueryAPIRequest) GetApiParams added in v1.2.5

func (r AlitripBpChannelCrowQueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlitripBpChannelCrowQueryAPIRequest) GetQueryParam added in v1.2.5

GetQueryParam QueryParam Getter

func (AlitripBpChannelCrowQueryAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlitripBpChannelCrowQueryAPIRequest) SetQueryParam added in v1.2.5

func (r *AlitripBpChannelCrowQueryAPIRequest) SetQueryParam(_queryParam *ExamineOuterUserRequest) error

SetQueryParam is QueryParam Setter 查询入参

type AlitripBpChannelCrowQueryAPIResponse added in v1.2.5

type AlitripBpChannelCrowQueryAPIResponse struct {
	model.CommonResponse
	AlitripBpChannelCrowQueryAPIResponseModel
}

AlitripBpChannelCrowQueryAPIResponse 人群匹配 API返回值 alitrip.bp.channel.crow.query

判断用户是否在圈选的人群中

type AlitripBpChannelCrowQueryAPIResponseModel added in v1.2.5

type AlitripBpChannelCrowQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alitrip_bp_channel_crow_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结构体
	Result *AdResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlitripBpChannelCrowQueryAPIResponseModel is 人群匹配 成功返回结果

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(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlitripBpCouponinfoSyncAPIRequest) GetParamCouponDataRequest added in v1.2.0

func (r AlitripBpCouponinfoSyncAPIRequest) GetParamCouponDataRequest() *CouponDataRequest

GetParamCouponDataRequest ParamCouponDataRequest Getter

func (AlitripBpCouponinfoSyncAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlitripBpCouponinfoSyncAPIRequest) SetParamCouponDataRequest added in v1.2.0

func (r *AlitripBpCouponinfoSyncAPIRequest) SetParamCouponDataRequest(_paramCouponDataRequest *CouponDataRequest) error

SetParamCouponDataRequest 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 ChannelExamineResultDto added in v1.2.5

type ChannelExamineResultDto struct {
	// 活动url
	TargetUrl string `json:"target_url,omitempty" xml:"target_url,omitempty"`
	// 是否为活动的目标用户
	IsTargetCrow bool `json:"is_target_crow,omitempty" xml:"is_target_crow,omitempty"`
}

ChannelExamineResultDto 结构体

type CouponDataRequest

type CouponDataRequest struct {
	// 券id
	CouponId string `json:"coupon_id,omitempty" xml:"coupon_id,omitempty"`
	// 券名称
	CouponName string `json:"coupon_name,omitempty" xml:"coupon_name,omitempty"`
	// 券额度(单位:分)
	CouponPrice string `json:"coupon_price,omitempty" xml:"coupon_price,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"`
	// 券模版标识
	CouponTemplateId string `json:"coupon_template_id,omitempty" xml:"coupon_template_id,omitempty"`
	// 额外信息
	ExtInfo string `json:"ext_info,omitempty" xml:"ext_info,omitempty"`
	// 券状态
	CouponStatus int64 `json:"coupon_status,omitempty" xml:"coupon_status,omitempty"`
}

CouponDataRequest 结构体

type ExamineOuterUserRequest added in v1.2.5

type ExamineOuterUserRequest struct {
	// 活动标识
	Activity string `json:"activity,omitempty" xml:"activity,omitempty"`
	// 渠道标识
	Channel string `json:"channel,omitempty" xml:"channel,omitempty"`
	// 用户标识
	OuterUserId string `json:"outer_user_id,omitempty" xml:"outer_user_id,omitempty"`
	// 平台标识
	Platform string `json:"platform,omitempty" xml:"platform,omitempty"`
}

ExamineOuterUserRequest 结构体

Jump to

Keyboard shortcuts

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