aetools

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package aetools 包含Efficient Tools相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseAliexpressAffiliateLinkGenerateAPIRequest added in v1.3.4

func ReleaseAliexpressAffiliateLinkGenerateAPIRequest(v *AliexpressAffiliateLinkGenerateAPIRequest)

ReleaseAliexpressAffiliateLinkGenerateAPIRequest 将 AliexpressAffiliateLinkGenerateAPIRequest 放入 sync.Pool

func ReleaseAliexpressAffiliateLinkGenerateAPIResponse added in v1.3.4

func ReleaseAliexpressAffiliateLinkGenerateAPIResponse(v *AliexpressAffiliateLinkGenerateAPIResponse)

ReleaseAliexpressAffiliateLinkGenerateAPIResponse 将 AliexpressAffiliateLinkGenerateAPIResponse 保存到 sync.Pool

func ReleasePromotionLink(v *PromotionLink)

ReleasePromotionLink 释放PromotionLink

func ReleasePromotionLinkResultDto added in v1.3.4

func ReleasePromotionLinkResultDto(v *PromotionLinkResultDto)

ReleasePromotionLinkResultDto 释放PromotionLinkResultDto

func ReleaseResponseDto added in v1.3.4

func ReleaseResponseDto(v *ResponseDto)

ReleaseResponseDto 释放ResponseDto

Types

type AliexpressAffiliateLinkGenerateAPIRequest added in v1.2.0

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

AliexpressAffiliateLinkGenerateAPIRequest 联盟推广链接生成 API请求 aliexpress.affiliate.link.generate

AE联盟推广链接生成接口

func GetAliexpressAffiliateLinkGenerateAPIRequest added in v1.3.4

func GetAliexpressAffiliateLinkGenerateAPIRequest() *AliexpressAffiliateLinkGenerateAPIRequest

GetAliexpressAffiliateLinkGenerateRequest 从 sync.Pool 获取 AliexpressAffiliateLinkGenerateAPIRequest

func NewAliexpressAffiliateLinkGenerateRequest

func NewAliexpressAffiliateLinkGenerateRequest() *AliexpressAffiliateLinkGenerateAPIRequest

NewAliexpressAffiliateLinkGenerateRequest 初始化AliexpressAffiliateLinkGenerateAPIRequest对象

func (AliexpressAffiliateLinkGenerateAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpressAffiliateLinkGenerateAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpressAffiliateLinkGenerateAPIRequest) GetAppSignature added in v1.2.0

GetAppSignature AppSignature Getter

func (AliexpressAffiliateLinkGenerateAPIRequest) GetPromotionLinkType added in v1.2.0

func (r AliexpressAffiliateLinkGenerateAPIRequest) GetPromotionLinkType() int64

GetPromotionLinkType PromotionLinkType Getter

func (AliexpressAffiliateLinkGenerateAPIRequest) GetRawParams added in v1.2.8

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

func (AliexpressAffiliateLinkGenerateAPIRequest) GetSourceValues added in v1.2.0

GetSourceValues SourceValues Getter

func (AliexpressAffiliateLinkGenerateAPIRequest) GetTrackingId added in v1.2.0

GetTrackingId TrackingId Getter

func (*AliexpressAffiliateLinkGenerateAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AliexpressAffiliateLinkGenerateAPIRequest) SetAppSignature added in v1.2.0

func (r *AliexpressAffiliateLinkGenerateAPIRequest) SetAppSignature(_appSignature string) error

SetAppSignature is AppSignature Setter API请求签名

func (*AliexpressAffiliateLinkGenerateAPIRequest) SetPromotionLinkType added in v1.2.0

func (r *AliexpressAffiliateLinkGenerateAPIRequest) SetPromotionLinkType(_promotionLinkType int64) error

SetPromotionLinkType is PromotionLinkType Setter 转换的链接类型:0代表普通Link,1代表Search Link,2代表 hot link

func (*AliexpressAffiliateLinkGenerateAPIRequest) SetSourceValues added in v1.2.0

func (r *AliexpressAffiliateLinkGenerateAPIRequest) SetSourceValues(_sourceValues string) error

SetSourceValues is SourceValues Setter 原始链接或者值

func (*AliexpressAffiliateLinkGenerateAPIRequest) SetTrackingId added in v1.2.0

func (r *AliexpressAffiliateLinkGenerateAPIRequest) SetTrackingId(_trackingId string) error

SetTrackingId is TrackingId Setter 推广者原始trackingID

type AliexpressAffiliateLinkGenerateAPIResponse

type AliexpressAffiliateLinkGenerateAPIResponse struct {
	model.CommonResponse
	AliexpressAffiliateLinkGenerateAPIResponseModel
}

AliexpressAffiliateLinkGenerateAPIResponse 联盟推广链接生成 API返回值 aliexpress.affiliate.link.generate

AE联盟推广链接生成接口

func GetAliexpressAffiliateLinkGenerateAPIResponse added in v1.3.4

func GetAliexpressAffiliateLinkGenerateAPIResponse() *AliexpressAffiliateLinkGenerateAPIResponse

GetAliexpressAffiliateLinkGenerateAPIResponse 从 sync.Pool 获取 AliexpressAffiliateLinkGenerateAPIResponse

func (*AliexpressAffiliateLinkGenerateAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AliexpressAffiliateLinkGenerateAPIResponseModel added in v1.2.0

type AliexpressAffiliateLinkGenerateAPIResponseModel struct {
	XMLName xml.Name `xml:"aliexpress_affiliate_link_generate_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"`
}

AliexpressAffiliateLinkGenerateAPIResponseModel is 联盟推广链接生成 成功返回结果

func (*AliexpressAffiliateLinkGenerateAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type PromotionLink struct {
	// 推广链接
	PromotionLink string `json:"promotion_link,omitempty" xml:"promotion_link,omitempty"`
	// 原始链接或者值
	SourceValue string `json:"source_value,omitempty" xml:"source_value,omitempty"`
}

PromotionLink 结构体

func GetPromotionLink() *PromotionLink

GetPromotionLink() 从对象池中获取PromotionLink

type PromotionLinkResultDto

type PromotionLinkResultDto struct {
	// 推广链接列表
	PromotionLinks []PromotionLink `json:"promotion_links,omitempty" xml:"promotion_links>promotion_link,omitempty"`
	// 推广者TrackingId
	TrackingId string `json:"tracking_id,omitempty" xml:"tracking_id,omitempty"`
	// 返回总量
	TotalResultCount int64 `json:"total_result_count,omitempty" xml:"total_result_count,omitempty"`
}

PromotionLinkResultDto 结构体

func GetPromotionLinkResultDto added in v1.3.4

func GetPromotionLinkResultDto() *PromotionLinkResultDto

GetPromotionLinkResultDto() 从对象池中获取PromotionLinkResultDto

type ResponseDto

type ResponseDto struct {
	// 返回结果状态描述
	RespMsg string `json:"resp_msg,omitempty" xml:"resp_msg,omitempty"`
	// 返回结果状态码
	RespCode int64 `json:"resp_code,omitempty" xml:"resp_code,omitempty"`
	// 返回结果明细信息
	Result *PromotionLinkResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

ResponseDto 结构体

func GetResponseDto added in v1.3.4

func GetResponseDto() *ResponseDto

GetResponseDto() 从对象池中获取ResponseDto

Jump to

Keyboard shortcuts

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