aetask

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

AE任务开放平台 model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliexpressInteractiveTaskCompleteAPIResponse

type AliexpressInteractiveTaskCompleteAPIResponse struct {
	model.CommonResponse
	AliexpressInteractiveTaskCompleteResponse
}

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

用户完成任务

type AliexpressInteractiveTaskCompleteRequest

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

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

用户完成任务

func NewAliexpressInteractiveTaskCompleteRequest

func NewAliexpressInteractiveTaskCompleteRequest() *AliexpressInteractiveTaskCompleteRequest

初始化AliexpressInteractiveTaskCompleteRequest对象

func (AliexpressInteractiveTaskCompleteRequest) GetApiMethodName

func (r AliexpressInteractiveTaskCompleteRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AliexpressInteractiveTaskCompleteRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AliexpressInteractiveTaskCompleteRequest) GetProjectAppKey

func (r AliexpressInteractiveTaskCompleteRequest) GetProjectAppKey() string

ProjectAppKey Getter

func (AliexpressInteractiveTaskCompleteRequest) GetTaskInstanceId

func (r AliexpressInteractiveTaskCompleteRequest) GetTaskInstanceId() int64

TaskInstanceId Getter

func (*AliexpressInteractiveTaskCompleteRequest) SetProjectAppKey

func (r *AliexpressInteractiveTaskCompleteRequest) SetProjectAppKey(projectAppKey string) error

ProjectAppKey Setter appkey

func (*AliexpressInteractiveTaskCompleteRequest) SetTaskInstanceId

func (r *AliexpressInteractiveTaskCompleteRequest) SetTaskInstanceId(taskInstanceId int64) error

TaskInstanceId Setter 任务实例id

type AliexpressInteractiveTaskCompleteResponse

type AliexpressInteractiveTaskCompleteResponse 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"`
}

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

type AliexpressInteractiveTaskCompleteResult

type AliexpressInteractiveTaskCompleteResult struct {
	// 结果
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,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"`
}

AliexpressInteractiveTaskCompleteResult

type AliexpressInteractiveTaskDeliveryQueryAPIResponse

type AliexpressInteractiveTaskDeliveryQueryAPIResponse struct {
	model.CommonResponse
	AliexpressInteractiveTaskDeliveryQueryResponse
}

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

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

type AliexpressInteractiveTaskDeliveryQueryRequest

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

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

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

func NewAliexpressInteractiveTaskDeliveryQueryRequest

func NewAliexpressInteractiveTaskDeliveryQueryRequest() *AliexpressInteractiveTaskDeliveryQueryRequest

初始化AliexpressInteractiveTaskDeliveryQueryRequest对象

func (AliexpressInteractiveTaskDeliveryQueryRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AliexpressInteractiveTaskDeliveryQueryRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AliexpressInteractiveTaskDeliveryQueryRequest) GetRequestDto

RequestDto Getter

func (*AliexpressInteractiveTaskDeliveryQueryRequest) SetRequestDto

RequestDto Setter 返回结果

type AliexpressInteractiveTaskDeliveryQueryResponse

type AliexpressInteractiveTaskDeliveryQueryResponse 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"`
}

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

type AliexpressInteractiveTaskDeliveryQueryResult

type AliexpressInteractiveTaskDeliveryQueryResult struct {
	// 响应时间戳
	DateBegin string `json:"date_begin,omitempty" xml:"date_begin,omitempty"`
	// 预热展示标识
	PreDisplay bool `json:"pre_display,omitempty" xml:"pre_display,omitempty"`
	// 风险等级
	SecurityLevel string `json:"security_level,omitempty" xml:"security_level,omitempty"`
	// 展示排序
	OrderDelivery int64 `json:"order_delivery,omitempty" xml:"order_delivery,omitempty"`
	// 物料集合
	Materials []Materials `json:"materials,omitempty" xml:"materials>materials,omitempty"`
	// 分组id
	GroupId int64 `json:"group_id,omitempty" xml:"group_id,omitempty"`
	// 结束时间
	DateEnd int64 `json:"date_end,omitempty" xml:"date_end,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"`
	// 利益点
	InterestNum int64 `json:"interest_num,omitempty" xml:"interest_num,omitempty"`
	// 扩展待用
	DetailIds string `json:"detail_ids,omitempty" xml:"detail_ids,omitempty"`
	// 是否原地跳转
	BrowseZeroFlag bool `json:"browse_zero_flag,omitempty" xml:"browse_zero_flag,omitempty"`
	// 幂等id
	IdempotentId string `json:"idempotent_id,omitempty" xml:"idempotent_id,omitempty"`
	// 未完成图标
	Icon4UnFinish string `json:"icon4_un_finish,omitempty" xml:"icon4_un_finish,omitempty"`
	// 参与记录id
	TaskInstanceId int64 `json:"task_instance_id,omitempty" xml:"task_instance_id,omitempty"`
	// 扩展字段
	ExtendInfo string `json:"extend_info,omitempty" xml:"extend_info,omitempty"`
	// 任务类型:0浏览
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 任务状态
	InstanceStatus int64 `json:"instance_status,omitempty" xml:"instance_status,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"`
	// 分组排序
	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"`
	// 主标题
	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"`
	// 可玩次数
	TimesLimit int64 `json:"times_limit,omitempty" xml:"times_limit,omitempty"`
	// 任务id
	TaskId int64 `json:"task_id,omitempty" xml:"task_id,omitempty"`
}

Materials

type QueryDeliveryRequestDto

type QueryDeliveryRequestDto struct {
	// 0:不展示预热 1:展示预热
	PreDisplay int64 `json:"pre_display,omitempty" xml:"pre_display,omitempty"`
	// 投放场景id
	SceneId int64 `json:"scene_id,omitempty" xml:"scene_id,omitempty"`
	// 用户版本信息
	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"`
}

QueryDeliveryRequestDto

Jump to

Keyboard shortcuts

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