dmp

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 dmp 包含DMP API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseApiContextDto added in v1.3.4

func ReleaseApiContextDto(v *ApiContextDto)

ReleaseApiContextDto 释放ApiContextDto

func ReleaseCrowdDto added in v1.3.4

func ReleaseCrowdDto(v *CrowdDto)

ReleaseCrowdDto 释放CrowdDto

func ReleaseCrowdQueryDto added in v1.3.4

func ReleaseCrowdQueryDto(v *CrowdQueryDto)

ReleaseCrowdQueryDto 释放CrowdQueryDto

func ReleasePager added in v1.3.4

func ReleasePager(v *Pager)

ReleasePager 释放Pager

func ReleaseTaobaoDmpCrowdBasicFindAPIRequest added in v1.3.4

func ReleaseTaobaoDmpCrowdBasicFindAPIRequest(v *TaobaoDmpCrowdBasicFindAPIRequest)

ReleaseTaobaoDmpCrowdBasicFindAPIRequest 将 TaobaoDmpCrowdBasicFindAPIRequest 放入 sync.Pool

func ReleaseTaobaoDmpCrowdBasicFindAPIResponse added in v1.3.4

func ReleaseTaobaoDmpCrowdBasicFindAPIResponse(v *TaobaoDmpCrowdBasicFindAPIResponse)

ReleaseTaobaoDmpCrowdBasicFindAPIResponse 将 TaobaoDmpCrowdBasicFindAPIResponse 保存到 sync.Pool

func ReleaseTaobaoDmpCrowdTemplateApplyAPIRequest added in v1.3.4

func ReleaseTaobaoDmpCrowdTemplateApplyAPIRequest(v *TaobaoDmpCrowdTemplateApplyAPIRequest)

ReleaseTaobaoDmpCrowdTemplateApplyAPIRequest 将 TaobaoDmpCrowdTemplateApplyAPIRequest 放入 sync.Pool

func ReleaseTaobaoDmpCrowdTemplateApplyAPIResponse added in v1.3.4

func ReleaseTaobaoDmpCrowdTemplateApplyAPIResponse(v *TaobaoDmpCrowdTemplateApplyAPIResponse)

ReleaseTaobaoDmpCrowdTemplateApplyAPIResponse 将 TaobaoDmpCrowdTemplateApplyAPIResponse 保存到 sync.Pool

func ReleaseTaobaoDmpCrowdTemplateTopicFindAPIRequest added in v1.3.4

func ReleaseTaobaoDmpCrowdTemplateTopicFindAPIRequest(v *TaobaoDmpCrowdTemplateTopicFindAPIRequest)

ReleaseTaobaoDmpCrowdTemplateTopicFindAPIRequest 将 TaobaoDmpCrowdTemplateTopicFindAPIRequest 放入 sync.Pool

func ReleaseTaobaoDmpCrowdTemplateTopicFindAPIResponse added in v1.3.4

func ReleaseTaobaoDmpCrowdTemplateTopicFindAPIResponse(v *TaobaoDmpCrowdTemplateTopicFindAPIResponse)

ReleaseTaobaoDmpCrowdTemplateTopicFindAPIResponse 将 TaobaoDmpCrowdTemplateTopicFindAPIResponse 保存到 sync.Pool

func ReleaseTemplate added in v1.3.4

func ReleaseTemplate(v *Template)

ReleaseTemplate 释放Template

func ReleaseTemplateContextDto added in v1.3.4

func ReleaseTemplateContextDto(v *TemplateContextDto)

ReleaseTemplateContextDto 释放TemplateContextDto

func ReleaseTopic added in v1.3.4

func ReleaseTopic(v *Topic)

ReleaseTopic 释放Topic

func ReleaseTopicQueryDto added in v1.3.4

func ReleaseTopicQueryDto(v *TopicQueryDto)

ReleaseTopicQueryDto 释放TopicQueryDto

Types

type ApiContextDto added in v1.2.5

type ApiContextDto struct {
	// 业务线编码,引力魔方:displayDefault
	BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"`
}

ApiContextDto 结构体

func GetApiContextDto added in v1.3.4

func GetApiContextDto() *ApiContextDto

GetApiContextDto() 从对象池中获取ApiContextDto

type CrowdDto added in v1.2.5

type CrowdDto struct {
	// 人群有效期
	ValidDate string `json:"valid_date,omitempty" xml:"valid_date,omitempty"`
	// 人群名称
	CrowdName string `json:"crowd_name,omitempty" xml:"crowd_name,omitempty"`
	// 人群创建时间
	Createtime string `json:"createtime,omitempty" xml:"createtime,omitempty"`
	// 人群id
	CrowdId int64 `json:"crowd_id,omitempty" xml:"crowd_id,omitempty"`
	// 人群覆盖人数
	Coverage int64 `json:"coverage,omitempty" xml:"coverage,omitempty"`
}

CrowdDto 结构体

func GetCrowdDto added in v1.3.4

func GetCrowdDto() *CrowdDto

GetCrowdDto() 从对象池中获取CrowdDto

type CrowdQueryDto added in v1.2.5

type CrowdQueryDto struct {
	// 按已有人群id查询过滤
	CrowdIdList []int64 `json:"crowd_id_list,omitempty" xml:"crowd_id_list>int64,omitempty"`
	// 按人群名称模糊匹配
	CrowdName string `json:"crowd_name,omitempty" xml:"crowd_name,omitempty"`
}

CrowdQueryDto 结构体

func GetCrowdQueryDto added in v1.3.4

func GetCrowdQueryDto() *CrowdQueryDto

GetCrowdQueryDto() 从对象池中获取CrowdQueryDto

type Pager added in v1.2.5

type Pager struct {
	// 当前页数
	IntCurrentPage int64 `json:"int_current_page,omitempty" xml:"int_current_page,omitempty"`
	// 分页大小
	IntPageSize int64 `json:"int_page_size,omitempty" xml:"int_page_size,omitempty"`
	// 记录总条数
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
	// 分页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 当前页数
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
}

Pager 结构体

func GetPager added in v1.3.4

func GetPager() *Pager

GetPager() 从对象池中获取Pager

type TaobaoDmpCrowdBasicFindAPIRequest added in v1.2.5

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

TaobaoDmpCrowdBasicFindAPIRequest DMP_BP版人群列表查询 API请求 taobao.dmp.crowd.basic.find

DMP_BP版人群列表查询

func GetTaobaoDmpCrowdBasicFindAPIRequest added in v1.3.4

func GetTaobaoDmpCrowdBasicFindAPIRequest() *TaobaoDmpCrowdBasicFindAPIRequest

GetTaobaoDmpCrowdBasicFindRequest 从 sync.Pool 获取 TaobaoDmpCrowdBasicFindAPIRequest

func NewTaobaoDmpCrowdBasicFindRequest added in v1.2.5

func NewTaobaoDmpCrowdBasicFindRequest() *TaobaoDmpCrowdBasicFindAPIRequest

NewTaobaoDmpCrowdBasicFindRequest 初始化TaobaoDmpCrowdBasicFindAPIRequest对象

func (TaobaoDmpCrowdBasicFindAPIRequest) GetApiContext added in v1.2.5

GetApiContext ApiContext Getter

func (TaobaoDmpCrowdBasicFindAPIRequest) GetApiMethodName added in v1.2.5

func (r TaobaoDmpCrowdBasicFindAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoDmpCrowdBasicFindAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoDmpCrowdBasicFindAPIRequest) GetCrowdQuery added in v1.2.5

GetCrowdQuery CrowdQuery Getter

func (TaobaoDmpCrowdBasicFindAPIRequest) GetPager added in v1.2.5

GetPager Pager Getter

func (TaobaoDmpCrowdBasicFindAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoDmpCrowdBasicFindAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoDmpCrowdBasicFindAPIRequest) SetApiContext added in v1.2.5

func (r *TaobaoDmpCrowdBasicFindAPIRequest) SetApiContext(_apiContext *ApiContextDto) error

SetApiContext is ApiContext Setter 请求体

func (*TaobaoDmpCrowdBasicFindAPIRequest) SetCrowdQuery added in v1.2.5

func (r *TaobaoDmpCrowdBasicFindAPIRequest) SetCrowdQuery(_crowdQuery *CrowdQueryDto) error

SetCrowdQuery is CrowdQuery Setter 人群查询条件

func (*TaobaoDmpCrowdBasicFindAPIRequest) SetPager added in v1.2.5

func (r *TaobaoDmpCrowdBasicFindAPIRequest) SetPager(_pager *Pager) error

SetPager is Pager Setter 分页参数

type TaobaoDmpCrowdBasicFindAPIResponse added in v1.2.5

type TaobaoDmpCrowdBasicFindAPIResponse struct {
	model.CommonResponse
	TaobaoDmpCrowdBasicFindAPIResponseModel
}

TaobaoDmpCrowdBasicFindAPIResponse DMP_BP版人群列表查询 API返回值 taobao.dmp.crowd.basic.find

DMP_BP版人群列表查询

func GetTaobaoDmpCrowdBasicFindAPIResponse added in v1.3.4

func GetTaobaoDmpCrowdBasicFindAPIResponse() *TaobaoDmpCrowdBasicFindAPIResponse

GetTaobaoDmpCrowdBasicFindAPIResponse 从 sync.Pool 获取 TaobaoDmpCrowdBasicFindAPIResponse

func (*TaobaoDmpCrowdBasicFindAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoDmpCrowdBasicFindAPIResponseModel added in v1.2.5

type TaobaoDmpCrowdBasicFindAPIResponseModel struct {
	XMLName xml.Name `xml:"dmp_crowd_basic_find_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 人群对象
	Result []CrowdDto `json:"result,omitempty" xml:"result>crowd_dto,omitempty"`
	// 错误码
	ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 分页对象
	Pager *Pager `json:"pager,omitempty" xml:"pager,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoDmpCrowdBasicFindAPIResponseModel is DMP_BP版人群列表查询 成功返回结果

func (*TaobaoDmpCrowdBasicFindAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoDmpCrowdTemplateApplyAPIRequest added in v1.2.5

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

TaobaoDmpCrowdTemplateApplyAPIRequest 人群模版采纳并生成人群API API请求 taobao.dmp.crowd.template.apply

人群模版采纳并生成人群API

func GetTaobaoDmpCrowdTemplateApplyAPIRequest added in v1.3.4

func GetTaobaoDmpCrowdTemplateApplyAPIRequest() *TaobaoDmpCrowdTemplateApplyAPIRequest

GetTaobaoDmpCrowdTemplateApplyRequest 从 sync.Pool 获取 TaobaoDmpCrowdTemplateApplyAPIRequest

func NewTaobaoDmpCrowdTemplateApplyRequest added in v1.2.5

func NewTaobaoDmpCrowdTemplateApplyRequest() *TaobaoDmpCrowdTemplateApplyAPIRequest

NewTaobaoDmpCrowdTemplateApplyRequest 初始化TaobaoDmpCrowdTemplateApplyAPIRequest对象

func (TaobaoDmpCrowdTemplateApplyAPIRequest) GetApiContext added in v1.2.5

GetApiContext ApiContext Getter

func (TaobaoDmpCrowdTemplateApplyAPIRequest) GetApiMethodName added in v1.2.5

func (r TaobaoDmpCrowdTemplateApplyAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoDmpCrowdTemplateApplyAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoDmpCrowdTemplateApplyAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoDmpCrowdTemplateApplyAPIRequest) GetTemplateContext added in v1.2.5

GetTemplateContext TemplateContext Getter

func (*TaobaoDmpCrowdTemplateApplyAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoDmpCrowdTemplateApplyAPIRequest) SetApiContext added in v1.2.5

func (r *TaobaoDmpCrowdTemplateApplyAPIRequest) SetApiContext(_apiContext *ApiContextDto) error

SetApiContext is ApiContext Setter 请求体

func (*TaobaoDmpCrowdTemplateApplyAPIRequest) SetTemplateContext added in v1.2.5

func (r *TaobaoDmpCrowdTemplateApplyAPIRequest) SetTemplateContext(_templateContext *TemplateContextDto) error

SetTemplateContext is TemplateContext Setter 采纳模版context

type TaobaoDmpCrowdTemplateApplyAPIResponse added in v1.2.5

type TaobaoDmpCrowdTemplateApplyAPIResponse struct {
	model.CommonResponse
	TaobaoDmpCrowdTemplateApplyAPIResponseModel
}

TaobaoDmpCrowdTemplateApplyAPIResponse 人群模版采纳并生成人群API API返回值 taobao.dmp.crowd.template.apply

人群模版采纳并生成人群API

func GetTaobaoDmpCrowdTemplateApplyAPIResponse added in v1.3.4

func GetTaobaoDmpCrowdTemplateApplyAPIResponse() *TaobaoDmpCrowdTemplateApplyAPIResponse

GetTaobaoDmpCrowdTemplateApplyAPIResponse 从 sync.Pool 获取 TaobaoDmpCrowdTemplateApplyAPIResponse

func (*TaobaoDmpCrowdTemplateApplyAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoDmpCrowdTemplateApplyAPIResponseModel added in v1.2.5

type TaobaoDmpCrowdTemplateApplyAPIResponseModel struct {
	XMLName xml.Name `xml:"dmp_crowd_template_apply_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 生成的人群id
	Result int64 `json:"result,omitempty" xml:"result,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoDmpCrowdTemplateApplyAPIResponseModel is 人群模版采纳并生成人群API 成功返回结果

func (*TaobaoDmpCrowdTemplateApplyAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoDmpCrowdTemplateTopicFindAPIRequest added in v1.2.5

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

TaobaoDmpCrowdTemplateTopicFindAPIRequest 平台精选榜单和模版查询接口 API请求 taobao.dmp.crowd.template.topic.find

查询平台精选榜单和模版信息

func GetTaobaoDmpCrowdTemplateTopicFindAPIRequest added in v1.3.4

func GetTaobaoDmpCrowdTemplateTopicFindAPIRequest() *TaobaoDmpCrowdTemplateTopicFindAPIRequest

GetTaobaoDmpCrowdTemplateTopicFindRequest 从 sync.Pool 获取 TaobaoDmpCrowdTemplateTopicFindAPIRequest

func NewTaobaoDmpCrowdTemplateTopicFindRequest added in v1.2.5

func NewTaobaoDmpCrowdTemplateTopicFindRequest() *TaobaoDmpCrowdTemplateTopicFindAPIRequest

NewTaobaoDmpCrowdTemplateTopicFindRequest 初始化TaobaoDmpCrowdTemplateTopicFindAPIRequest对象

func (TaobaoDmpCrowdTemplateTopicFindAPIRequest) GetApiContext added in v1.2.5

GetApiContext ApiContext Getter

func (TaobaoDmpCrowdTemplateTopicFindAPIRequest) GetApiMethodName added in v1.2.5

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoDmpCrowdTemplateTopicFindAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoDmpCrowdTemplateTopicFindAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoDmpCrowdTemplateTopicFindAPIRequest) GetTopicQuery added in v1.2.5

GetTopicQuery TopicQuery Getter

func (*TaobaoDmpCrowdTemplateTopicFindAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoDmpCrowdTemplateTopicFindAPIRequest) SetApiContext added in v1.2.5

func (r *TaobaoDmpCrowdTemplateTopicFindAPIRequest) SetApiContext(_apiContext *ApiContextDto) error

SetApiContext is ApiContext Setter 请求体

func (*TaobaoDmpCrowdTemplateTopicFindAPIRequest) SetTopicQuery added in v1.2.5

func (r *TaobaoDmpCrowdTemplateTopicFindAPIRequest) SetTopicQuery(_topicQuery *TopicQueryDto) error

SetTopicQuery is TopicQuery Setter 查询对象

type TaobaoDmpCrowdTemplateTopicFindAPIResponse added in v1.2.5

type TaobaoDmpCrowdTemplateTopicFindAPIResponse struct {
	model.CommonResponse
	TaobaoDmpCrowdTemplateTopicFindAPIResponseModel
}

TaobaoDmpCrowdTemplateTopicFindAPIResponse 平台精选榜单和模版查询接口 API返回值 taobao.dmp.crowd.template.topic.find

查询平台精选榜单和模版信息

func GetTaobaoDmpCrowdTemplateTopicFindAPIResponse added in v1.3.4

func GetTaobaoDmpCrowdTemplateTopicFindAPIResponse() *TaobaoDmpCrowdTemplateTopicFindAPIResponse

GetTaobaoDmpCrowdTemplateTopicFindAPIResponse 从 sync.Pool 获取 TaobaoDmpCrowdTemplateTopicFindAPIResponse

func (*TaobaoDmpCrowdTemplateTopicFindAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoDmpCrowdTemplateTopicFindAPIResponseModel added in v1.2.5

type TaobaoDmpCrowdTemplateTopicFindAPIResponseModel struct {
	XMLName xml.Name `xml:"dmp_crowd_template_topic_find_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 榜单对象数组
	Result []Topic `json:"result,omitempty" xml:"result>topic,omitempty"`
	// 错误码
	ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoDmpCrowdTemplateTopicFindAPIResponseModel is 平台精选榜单和模版查询接口 成功返回结果

func (*TaobaoDmpCrowdTemplateTopicFindAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type Template added in v1.2.5

type Template struct {
	// 模版扩展json信息,usageIndex: 使用热度,mark: 打标文案
	Ext string `json:"ext,omitempty" xml:"ext,omitempty"`
	// 模版描述信息
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 模版推荐理由
	Highlight string `json:"highlight,omitempty" xml:"highlight,omitempty"`
	// 模版名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 模版id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

Template 结构体

func GetTemplate added in v1.3.4

func GetTemplate() *Template

GetTemplate() 从对象池中获取Template

type TemplateContextDto added in v1.2.5

type TemplateContextDto struct {
	// 算法推荐模版context
	ContextParams string `json:"context_params,omitempty" xml:"context_params,omitempty"`
	// 榜单id
	TopicId int64 `json:"topic_id,omitempty" xml:"topic_id,omitempty"`
	// 模版id
	TemplateId int64 `json:"template_id,omitempty" xml:"template_id,omitempty"`
}

TemplateContextDto 结构体

func GetTemplateContextDto added in v1.3.4

func GetTemplateContextDto() *TemplateContextDto

GetTemplateContextDto() 从对象池中获取TemplateContextDto

type Topic added in v1.2.5

type Topic struct {
	// 榜单下的模版对象数组
	Templates []Template `json:"templates,omitempty" xml:"templates>template,omitempty"`
	// 榜单名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 榜单描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 榜单id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

Topic 结构体

func GetTopic added in v1.3.4

func GetTopic() *Topic

GetTopic() 从对象池中获取Topic

type TopicQueryDto added in v1.2.5

type TopicQueryDto struct {
	// 算法推荐模版context
	ContextParams string `json:"context_params,omitempty" xml:"context_params,omitempty"`
}

TopicQueryDto 结构体

func GetTopicQueryDto added in v1.3.4

func GetTopicQueryDto() *TopicQueryDto

GetTopicQueryDto() 从对象池中获取TopicQueryDto

Jump to

Keyboard shortcuts

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