aetask

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 aetask 包含AE任务开放平台相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliexpressInteractiveTaskCompleteAPIRequest added in v1.2.0

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

AliexpressInteractiveTaskCompleteAPIRequest 任务完成接口 API请求 aliexpress.interactive.task.complete

用户完成任务

func NewAliexpressInteractiveTaskCompleteRequest

func NewAliexpressInteractiveTaskCompleteRequest() *AliexpressInteractiveTaskCompleteAPIRequest

NewAliexpressInteractiveTaskCompleteRequest 初始化AliexpressInteractiveTaskCompleteAPIRequest对象

func (AliexpressInteractiveTaskCompleteAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpressInteractiveTaskCompleteAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpressInteractiveTaskCompleteAPIRequest) GetProjectAppKey added in v1.2.0

GetProjectAppKey ProjectAppKey Getter

func (AliexpressInteractiveTaskCompleteAPIRequest) GetRawParams added in v1.2.8

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

func (AliexpressInteractiveTaskCompleteAPIRequest) GetTaskInstanceId added in v1.2.0

func (r AliexpressInteractiveTaskCompleteAPIRequest) GetTaskInstanceId() int64

GetTaskInstanceId TaskInstanceId Getter

func (*AliexpressInteractiveTaskCompleteAPIRequest) SetProjectAppKey added in v1.2.0

func (r *AliexpressInteractiveTaskCompleteAPIRequest) SetProjectAppKey(_projectAppKey string) error

SetProjectAppKey is ProjectAppKey Setter appkey

func (*AliexpressInteractiveTaskCompleteAPIRequest) SetTaskInstanceId added in v1.2.0

func (r *AliexpressInteractiveTaskCompleteAPIRequest) SetTaskInstanceId(_taskInstanceId int64) error

SetTaskInstanceId is TaskInstanceId Setter 任务实例id

type AliexpressInteractiveTaskCompleteAPIResponse

type AliexpressInteractiveTaskCompleteAPIResponse struct {
	model.CommonResponse
	AliexpressInteractiveTaskCompleteAPIResponseModel
}

AliexpressInteractiveTaskCompleteAPIResponse 任务完成接口 API返回值 aliexpress.interactive.task.complete

用户完成任务

type AliexpressInteractiveTaskCompleteAPIResponseModel added in v1.2.0

type AliexpressInteractiveTaskCompleteAPIResponseModel struct {
	XMLName xml.Name `xml:"aliexpress_interactive_task_complete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *AliexpressInteractiveTaskCompleteResult `json:"result,omitempty" xml:"result,omitempty"`
}

AliexpressInteractiveTaskCompleteAPIResponseModel is 任务完成接口 成功返回结果

type AliexpressInteractiveTaskCompleteResult

type AliexpressInteractiveTaskCompleteResult struct {
	// 结果
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// msgInfo
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// msgCode
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AliexpressInteractiveTaskCompleteResult 结构体

type AliexpressInteractiveTaskDeliveryQueryAPIRequest added in v1.2.0

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

AliexpressInteractiveTaskDeliveryQueryAPIRequest AE互动任务投放 API请求 aliexpress.interactive.task.delivery.query

将内部配置好的任务,如浏览商品,店铺投放给外部ISV

func NewAliexpressInteractiveTaskDeliveryQueryRequest

func NewAliexpressInteractiveTaskDeliveryQueryRequest() *AliexpressInteractiveTaskDeliveryQueryAPIRequest

NewAliexpressInteractiveTaskDeliveryQueryRequest 初始化AliexpressInteractiveTaskDeliveryQueryAPIRequest对象

func (AliexpressInteractiveTaskDeliveryQueryAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpressInteractiveTaskDeliveryQueryAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpressInteractiveTaskDeliveryQueryAPIRequest) GetRawParams added in v1.2.8

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

func (AliexpressInteractiveTaskDeliveryQueryAPIRequest) GetRequestDto added in v1.2.0

GetRequestDto RequestDto Getter

func (*AliexpressInteractiveTaskDeliveryQueryAPIRequest) SetRequestDto added in v1.2.0

SetRequestDto is RequestDto Setter 返回结果

type AliexpressInteractiveTaskDeliveryQueryAPIResponse

type AliexpressInteractiveTaskDeliveryQueryAPIResponse struct {
	model.CommonResponse
	AliexpressInteractiveTaskDeliveryQueryAPIResponseModel
}

AliexpressInteractiveTaskDeliveryQueryAPIResponse AE互动任务投放 API返回值 aliexpress.interactive.task.delivery.query

将内部配置好的任务,如浏览商品,店铺投放给外部ISV

type AliexpressInteractiveTaskDeliveryQueryAPIResponseModel added in v1.2.0

type AliexpressInteractiveTaskDeliveryQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"aliexpress_interactive_task_delivery_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 服务返回接口
	Results []AliexpressInteractiveTaskDeliveryQueryResult `json:"results,omitempty" xml:"results>aliexpress_interactive_task_delivery_query_result,omitempty"`
	// msgInfo
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// msgCode
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
}

AliexpressInteractiveTaskDeliveryQueryAPIResponseModel is AE互动任务投放 成功返回结果

type AliexpressInteractiveTaskDeliveryQueryResult

type AliexpressInteractiveTaskDeliveryQueryResult struct {
	// 物料集合
	Materials []Materials `json:"materials,omitempty" xml:"materials>materials,omitempty"`
	// 响应时间戳
	DateBegin string `json:"date_begin,omitempty" xml:"date_begin,omitempty"`
	// 风险等级
	SecurityLevel string `json:"security_level,omitempty" xml:"security_level,omitempty"`
	// 展示排序
	OrderDelivery int64 `json:"order_delivery,omitempty" xml:"order_delivery,omitempty"`
	// 分组id
	GroupId int64 `json:"group_id,omitempty" xml:"group_id,omitempty"`
	// 结束时间
	DateEnd int64 `json:"date_end,omitempty" xml:"date_end,omitempty"`
	// 预热展示标识
	PreDisplay bool `json:"pre_display,omitempty" xml:"pre_display,omitempty"`
}

AliexpressInteractiveTaskDeliveryQueryResult 结构体

type Materials

type Materials struct {
	// 物料类型:shop/item/url
	MaterialUrlType string `json:"material_url_type,omitempty" xml:"material_url_type,omitempty"`
	// 物料url
	MaterialUrl string `json:"material_url,omitempty" xml:"material_url,omitempty"`
	// 未兑换记录
	UnIssueRecord string `json:"un_issue_record,omitempty" xml:"un_issue_record,omitempty"`
	// 扩展待用
	DetailIds string `json:"detail_ids,omitempty" xml:"detail_ids,omitempty"`
	// 幂等id
	IdempotentId string `json:"idempotent_id,omitempty" xml:"idempotent_id,omitempty"`
	// 未完成图标
	Icon4UnFinish string `json:"icon4_un_finish,omitempty" xml:"icon4_un_finish,omitempty"`
	// 扩展字段
	ExtendInfo string `json:"extend_info,omitempty" xml:"extend_info,omitempty"`
	// 完成图标
	Icon4Finished string `json:"icon4_finished,omitempty" xml:"icon4_finished,omitempty"`
	// 配置项
	BehaviorConfig string `json:"behavior_config,omitempty" xml:"behavior_config,omitempty"`
	// 算法打点标志
	Trace string `json:"trace,omitempty" xml:"trace,omitempty"`
	// 主标题
	MainTitle string `json:"main_title,omitempty" xml:"main_title,omitempty"`
	// 副标题
	SecondTitle string `json:"second_title,omitempty" xml:"second_title,omitempty"`
	// 图标
	IconUrl string `json:"icon_url,omitempty" xml:"icon_url,omitempty"`
	// 利益点
	InterestNum int64 `json:"interest_num,omitempty" xml:"interest_num,omitempty"`
	// 参与记录id
	TaskInstanceId int64 `json:"task_instance_id,omitempty" xml:"task_instance_id,omitempty"`
	// 任务类型:0浏览
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 任务状态
	InstanceStatus int64 `json:"instance_status,omitempty" xml:"instance_status,omitempty"`
	// 分组排序
	OrderGroup int64 `json:"order_group,omitempty" xml:"order_group,omitempty"`
	// 已参与次数
	TimesJoined int64 `json:"times_joined,omitempty" xml:"times_joined,omitempty"`
	// 物料id
	MaterialConfigId int64 `json:"material_config_id,omitempty" xml:"material_config_id,omitempty"`
	// 可玩次数
	TimesLimit int64 `json:"times_limit,omitempty" xml:"times_limit,omitempty"`
	// 任务id
	TaskId int64 `json:"task_id,omitempty" xml:"task_id,omitempty"`
	// 是否原地跳转
	BrowseZeroFlag bool `json:"browse_zero_flag,omitempty" xml:"browse_zero_flag,omitempty"`
}

Materials 结构体

type QueryDeliveryRequestDto

type QueryDeliveryRequestDto struct {
	// 用户版本信息
	Ttid string `json:"ttid,omitempty" xml:"ttid,omitempty"`
	// 语言
	Language string `json:"language,omitempty" xml:"language,omitempty"`
	// 国家
	Country string `json:"country,omitempty" xml:"country,omitempty"`
	// 准入key
	ProjectAppKey string `json:"project_app_key,omitempty" xml:"project_app_key,omitempty"`
	// 0:不展示预热 1:展示预热
	PreDisplay int64 `json:"pre_display,omitempty" xml:"pre_display,omitempty"`
	// 投放场景id
	SceneId int64 `json:"scene_id,omitempty" xml:"scene_id,omitempty"`
}

QueryDeliveryRequestDto 结构体

Jump to

Keyboard shortcuts

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