alitripbp

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 4 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

func ReleaseAdResult added in v1.3.4

func ReleaseAdResult(v *AdResult)

ReleaseAdResult 释放AdResult

func ReleaseAlitripBpChannelCrowQueryAPIRequest added in v1.3.4

func ReleaseAlitripBpChannelCrowQueryAPIRequest(v *AlitripBpChannelCrowQueryAPIRequest)

ReleaseAlitripBpChannelCrowQueryAPIRequest 将 AlitripBpChannelCrowQueryAPIRequest 放入 sync.Pool

func ReleaseAlitripBpChannelCrowQueryAPIResponse added in v1.3.4

func ReleaseAlitripBpChannelCrowQueryAPIResponse(v *AlitripBpChannelCrowQueryAPIResponse)

ReleaseAlitripBpChannelCrowQueryAPIResponse 将 AlitripBpChannelCrowQueryAPIResponse 保存到 sync.Pool

func ReleaseAlitripBpCouponinfoSyncAPIRequest added in v1.3.4

func ReleaseAlitripBpCouponinfoSyncAPIRequest(v *AlitripBpCouponinfoSyncAPIRequest)

ReleaseAlitripBpCouponinfoSyncAPIRequest 将 AlitripBpCouponinfoSyncAPIRequest 放入 sync.Pool

func ReleaseAlitripBpCouponinfoSyncAPIResponse added in v1.3.4

func ReleaseAlitripBpCouponinfoSyncAPIResponse(v *AlitripBpCouponinfoSyncAPIResponse)

ReleaseAlitripBpCouponinfoSyncAPIResponse 将 AlitripBpCouponinfoSyncAPIResponse 保存到 sync.Pool

func ReleaseChannelExamineResultDto added in v1.3.4

func ReleaseChannelExamineResultDto(v *ChannelExamineResultDto)

ReleaseChannelExamineResultDto 释放ChannelExamineResultDto

func ReleaseCouponDataRequest added in v1.3.4

func ReleaseCouponDataRequest(v *CouponDataRequest)

ReleaseCouponDataRequest 释放CouponDataRequest

func ReleaseExamineOuterUserRequest added in v1.3.4

func ReleaseExamineOuterUserRequest(v *ExamineOuterUserRequest)

ReleaseExamineOuterUserRequest 释放ExamineOuterUserRequest

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 结构体

func GetAdResult added in v1.3.4

func GetAdResult() *AdResult

GetAdResult() 从对象池中获取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 GetAlitripBpChannelCrowQueryAPIRequest added in v1.3.4

func GetAlitripBpChannelCrowQueryAPIRequest() *AlitripBpChannelCrowQueryAPIRequest

GetAlitripBpChannelCrowQueryRequest 从 sync.Pool 获取 AlitripBpChannelCrowQueryAPIRequest

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) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

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

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

func GetAlitripBpChannelCrowQueryAPIResponse added in v1.3.4

func GetAlitripBpChannelCrowQueryAPIResponse() *AlitripBpChannelCrowQueryAPIResponse

GetAlitripBpChannelCrowQueryAPIResponse 从 sync.Pool 获取 AlitripBpChannelCrowQueryAPIResponse

func (*AlitripBpChannelCrowQueryAPIResponse) Reset added in v1.3.4

Reset 清空结构体

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 人群匹配 成功返回结果

func (*AlitripBpChannelCrowQueryAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlitripBpCouponinfoSyncAPIRequest added in v1.2.0

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

AlitripBpCouponinfoSyncAPIRequest 飞猪广告券信息同步接口 API请求 alitrip.bp.couponinfo.sync

飞猪商业化券信息同步

func GetAlitripBpCouponinfoSyncAPIRequest added in v1.3.4

func GetAlitripBpCouponinfoSyncAPIRequest() *AlitripBpCouponinfoSyncAPIRequest

GetAlitripBpCouponinfoSyncRequest 从 sync.Pool 获取 AlitripBpCouponinfoSyncAPIRequest

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) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

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

飞猪商业化券信息同步

func GetAlitripBpCouponinfoSyncAPIResponse added in v1.3.4

func GetAlitripBpCouponinfoSyncAPIResponse() *AlitripBpCouponinfoSyncAPIResponse

GetAlitripBpCouponinfoSyncAPIResponse 从 sync.Pool 获取 AlitripBpCouponinfoSyncAPIResponse

func (*AlitripBpCouponinfoSyncAPIResponse) Reset added in v1.3.4

Reset 清空结构体

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 飞猪广告券信息同步接口 成功返回结果

func (*AlitripBpCouponinfoSyncAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

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 结构体

func GetChannelExamineResultDto added in v1.3.4

func GetChannelExamineResultDto() *ChannelExamineResultDto

GetChannelExamineResultDto() 从对象池中获取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 结构体

func GetCouponDataRequest added in v1.3.4

func GetCouponDataRequest() *CouponDataRequest

GetCouponDataRequest() 从对象池中获取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 结构体

func GetExamineOuterUserRequest added in v1.3.4

func GetExamineOuterUserRequest() *ExamineOuterUserRequest

GetExamineOuterUserRequest() 从对象池中获取ExamineOuterUserRequest

Jump to

Keyboard shortcuts

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