Documentation ¶
Overview ¶
Package aetools 包含Efficient Tools相关结构体
Index ¶
- type AliexpressAffiliateLinkGenerateAPIRequest
- func (r AliexpressAffiliateLinkGenerateAPIRequest) GetApiMethodName() string
- func (r AliexpressAffiliateLinkGenerateAPIRequest) GetApiParams(params url.Values)
- func (r AliexpressAffiliateLinkGenerateAPIRequest) GetAppSignature() string
- func (r AliexpressAffiliateLinkGenerateAPIRequest) GetPromotionLinkType() int64
- func (r AliexpressAffiliateLinkGenerateAPIRequest) GetRawParams() model.Params
- func (r AliexpressAffiliateLinkGenerateAPIRequest) GetSourceValues() string
- func (r AliexpressAffiliateLinkGenerateAPIRequest) GetTrackingId() string
- func (r *AliexpressAffiliateLinkGenerateAPIRequest) SetAppSignature(_appSignature string) error
- func (r *AliexpressAffiliateLinkGenerateAPIRequest) SetPromotionLinkType(_promotionLinkType int64) error
- func (r *AliexpressAffiliateLinkGenerateAPIRequest) SetSourceValues(_sourceValues string) error
- func (r *AliexpressAffiliateLinkGenerateAPIRequest) SetTrackingId(_trackingId string) error
- type AliexpressAffiliateLinkGenerateAPIResponse
- type AliexpressAffiliateLinkGenerateAPIResponseModel
- type PromotionLink
- type PromotionLinkResultDto
- type ResponseDto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 NewAliexpressAffiliateLinkGenerateRequest ¶
func NewAliexpressAffiliateLinkGenerateRequest() *AliexpressAffiliateLinkGenerateAPIRequest
NewAliexpressAffiliateLinkGenerateRequest 初始化AliexpressAffiliateLinkGenerateAPIRequest对象
func (AliexpressAffiliateLinkGenerateAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AliexpressAffiliateLinkGenerateAPIRequest) GetApiMethodName() string
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
func (r AliexpressAffiliateLinkGenerateAPIRequest) GetAppSignature() string
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
func (r AliexpressAffiliateLinkGenerateAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AliexpressAffiliateLinkGenerateAPIRequest) GetSourceValues ¶ added in v1.2.0
func (r AliexpressAffiliateLinkGenerateAPIRequest) GetSourceValues() string
GetSourceValues SourceValues Getter
func (AliexpressAffiliateLinkGenerateAPIRequest) GetTrackingId ¶ added in v1.2.0
func (r AliexpressAffiliateLinkGenerateAPIRequest) GetTrackingId() string
GetTrackingId TrackingId Getter
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联盟推广链接生成接口
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 联盟推广链接生成 成功返回结果
type PromotionLink ¶
type PromotionLink struct { // 推广链接 PromotionLink string `json:"promotion_link,omitempty" xml:"promotion_link,omitempty"` // 原始链接或者值 SourceValue string `json:"source_value,omitempty" xml:"source_value,omitempty"` }
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 结构体
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 结构体