dmp

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 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

This section is empty.

Types

type ApiContextDto added in v1.2.5

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

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 结构体

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 结构体

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 结构体

type TaobaodmpcrowdbasicfindAPIRequest added in v1.3.1

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

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

DMP_BP版人群列表查询

func NewTaobaodmpcrowdbasicfindRequest added in v1.3.1

func NewTaobaodmpcrowdbasicfindRequest() *TaobaodmpcrowdbasicfindAPIRequest

NewTaobaodmpcrowdbasicfindRequest 初始化TaobaodmpcrowdbasicfindAPIRequest对象

func (TaobaodmpcrowdbasicfindAPIRequest) GetApiContext added in v1.3.1

GetApiContext ApiContext Getter

func (TaobaodmpcrowdbasicfindAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaodmpcrowdbasicfindAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaodmpcrowdbasicfindAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaodmpcrowdbasicfindAPIRequest) GetCrowdQuery added in v1.3.1

GetCrowdQuery CrowdQuery Getter

func (TaobaodmpcrowdbasicfindAPIRequest) GetPager added in v1.3.1

GetPager Pager Getter

func (TaobaodmpcrowdbasicfindAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaodmpcrowdbasicfindAPIRequest) SetApiContext added in v1.3.1

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

SetApiContext is ApiContext Setter 请求体

func (*TaobaodmpcrowdbasicfindAPIRequest) SetCrowdQuery added in v1.3.1

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

SetCrowdQuery is CrowdQuery Setter 人群查询条件

func (*TaobaodmpcrowdbasicfindAPIRequest) SetPager added in v1.3.1

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

SetPager is Pager Setter 分页参数

type TaobaodmpcrowdbasicfindAPIResponse added in v1.3.1

type TaobaodmpcrowdbasicfindAPIResponse struct {
	model.CommonResponse
	TaobaodmpcrowdbasicfindAPIResponseModel
}

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

DMP_BP版人群列表查询

type TaobaodmpcrowdbasicfindAPIResponseModel added in v1.3.1

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版人群列表查询 成功返回结果

type TaobaodmpcrowdtemplateapplyAPIRequest added in v1.3.1

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

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

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

func NewTaobaodmpcrowdtemplateapplyRequest added in v1.3.1

func NewTaobaodmpcrowdtemplateapplyRequest() *TaobaodmpcrowdtemplateapplyAPIRequest

NewTaobaodmpcrowdtemplateapplyRequest 初始化TaobaodmpcrowdtemplateapplyAPIRequest对象

func (TaobaodmpcrowdtemplateapplyAPIRequest) GetApiContext added in v1.3.1

GetApiContext ApiContext Getter

func (TaobaodmpcrowdtemplateapplyAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaodmpcrowdtemplateapplyAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaodmpcrowdtemplateapplyAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaodmpcrowdtemplateapplyAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaodmpcrowdtemplateapplyAPIRequest) GetTemplateContext added in v1.3.1

GetTemplateContext TemplateContext Getter

func (*TaobaodmpcrowdtemplateapplyAPIRequest) SetApiContext added in v1.3.1

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

SetApiContext is ApiContext Setter 请求体

func (*TaobaodmpcrowdtemplateapplyAPIRequest) SetTemplateContext added in v1.3.1

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

SetTemplateContext is TemplateContext Setter 采纳模版context

type TaobaodmpcrowdtemplateapplyAPIResponse added in v1.3.1

type TaobaodmpcrowdtemplateapplyAPIResponse struct {
	model.CommonResponse
	TaobaodmpcrowdtemplateapplyAPIResponseModel
}

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

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

type TaobaodmpcrowdtemplateapplyAPIResponseModel added in v1.3.1

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 成功返回结果

type TaobaodmpcrowdtemplatetopicfindAPIRequest added in v1.3.1

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

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

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

func NewTaobaodmpcrowdtemplatetopicfindRequest added in v1.3.1

func NewTaobaodmpcrowdtemplatetopicfindRequest() *TaobaodmpcrowdtemplatetopicfindAPIRequest

NewTaobaodmpcrowdtemplatetopicfindRequest 初始化TaobaodmpcrowdtemplatetopicfindAPIRequest对象

func (TaobaodmpcrowdtemplatetopicfindAPIRequest) GetApiContext added in v1.3.1

GetApiContext ApiContext Getter

func (TaobaodmpcrowdtemplatetopicfindAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaodmpcrowdtemplatetopicfindAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaodmpcrowdtemplatetopicfindAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaodmpcrowdtemplatetopicfindAPIRequest) GetTopicQuery added in v1.3.1

GetTopicQuery TopicQuery Getter

func (*TaobaodmpcrowdtemplatetopicfindAPIRequest) SetApiContext added in v1.3.1

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

SetApiContext is ApiContext Setter 请求体

func (*TaobaodmpcrowdtemplatetopicfindAPIRequest) SetTopicQuery added in v1.3.1

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

SetTopicQuery is TopicQuery Setter 查询对象

type TaobaodmpcrowdtemplatetopicfindAPIResponse added in v1.3.1

type TaobaodmpcrowdtemplatetopicfindAPIResponse struct {
	model.CommonResponse
	TaobaodmpcrowdtemplatetopicfindAPIResponseModel
}

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

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

type TaobaodmpcrowdtemplatetopicfindAPIResponseModel added in v1.3.1

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 平台精选榜单和模版查询接口 成功返回结果

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 结构体

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 结构体

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 结构体

type TopicQueryDto added in v1.2.5

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

TopicQueryDto 结构体

Jump to

Keyboard shortcuts

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