model

package
v1.8.23 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: Apache-2.0 Imports: 3 Imported by: 59

Documentation

Overview

Package model 包含API所需结构体

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	// Code 返回码
	Code int `json:"code"`
	// Message 返回信息
	Message string `json:"message"`
	// RequestID 请求的日志id,唯一标识一个请求
	RequestID string `json:"request_id,omitempty"`
}

BaseResponse shared api response data fields

func (BaseResponse) Error

func (r BaseResponse) Error() string

Error implement Response interface

func (BaseResponse) IsError

func (r BaseResponse) IsError() bool

IsError implement Response interface

type FlexUint64 added in v1.4.2

type FlexUint64 uint64

FlexUint64 support string quoted number in json

func (*FlexUint64) UnmarshalJSON added in v1.4.2

func (fu64 *FlexUint64) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON implement json Unmarshal interface

type FloatRange

type FloatRange struct {
	Min float64
	Max float64
}

FloatRange 通用浮点数字范围

type Geolocation

type Geolocation struct {
	// Radius 半径
	Radius int64 `json:"radius,omitempty"`
	// Name 地点名称
	Name string `json:"name,omitempty"`
	// Long 经度
	Long float64 `json:"long,omitempty"`
	// Lat 纬度
	Lat float64 `json:"lat,omitempty"`
	// City 城市名
	City string `json:"city,omitempty"`
	// StreetNumber 街道号
	StreetNumber string `json:"street_number,omitempty"`
	// Street 街道名
	Street string `json:"street,omitempty"`
	// District 区域名
	District string `json:"district,omitempty"`
	// Province 省份名
	Province string `json:"province,omitempty"`
}

Geolocation 地理位置信息

type GetRequest

type GetRequest interface {
	// Encode encode request to string
	Encode() string
}

GetRequest get request interface

type PageInfo

type PageInfo struct {
	// Page 当前页码
	Page int `json:"page,omitempty"`
	// PageSize 每页item个数
	PageSize int `json:"page_size,omitempty"`
	// TotalNumber 总item个数
	TotalNumber int64 `json:"total_number,omitempty"`
	// TotalPage 总页数
	TotalPage int `json:"total_page,omitempty"`
	// HasMore 是否有下一页
	HasMore int `json:"has_more,omitempty"`
	// Count 过滤后返回的视频数量,注意,此处的数量不一定与入参的count一致,因为存在过滤逻辑
	Count int `json:"count,omitempty"`
	// Cursor 下一次分页拉取的游标值
	Cursor int `json:"cursor,omitempty"`
}

PageInfo 通用翻页数据

type PostRequest

type PostRequest interface {
	// Encode encode request to bytes
	Encode() []byte
}

PostRequest post request interface

type Response

type Response interface {
	// IsError 是否返回错误
	IsError() bool
	// Error implement error interface
	Error() string
}

Response api response interface

type UploadField added in v1.1.3

type UploadField struct {
	// Key field key
	Key string
	// Value field value
	Value string
	// Reader upload file reader
	Reader io.Reader
}

UploadField multipart/form-data post request field struct

type UploadRequest added in v1.1.3

type UploadRequest interface {
	// Encode encode request to UploadFields
	Encode() []UploadField
}

UploadRequest multipart/form-data reqeust interface

Directories

Path Synopsis
Package ad 广告计划相关API models
Package ad 广告计划相关API models
Package advertiser 账号服务相关API models
Package advertiser 账号服务相关API models
Package agent 代理商相关API models
Package agent 代理商相关API models
Package assets 资产相关API models
Package assets 资产相关API models
creativecomponent
Package creativecomponent 创意组件相关API models
Package creativecomponent 创意组件相关API models
Package audiencepackage 定向包管理
Package audiencepackage 定向包管理
Package businessplatform 纵横组织相关A PI
Package businessplatform 纵横组织相关A PI
Package campaign 广告计划相关API models
Package campaign 广告计划相关API models
Package clue 青鸟线索通API models
Package clue 青鸟线索通API models
coupon
Package coupon 线索通卡券组件管理 API models
Package coupon 线索通卡券组件管理 API models
form
Package form 表单组件API models
Package form 表单组件API models
smartphone
Package smartphone 智能电话组件 API models
Package smartphone 智能电话组件 API models
Package conversion 新版转换回传API models
Package conversion 新版转换回传API models
Package creative 广告创意模块API models
Package creative 广告创意模块API models
Package customercenter 管家账号相关API models
Package customercenter 管家账号相关API models
dmp
Package dmp DMP人群管理API models
Package dmp DMP人群管理API models
customaudience
Package customaudience 人群包相关API models
Package customaudience 人群包相关API models
datasource
Package datasource 数据源相关API models
Package datasource 数据源相关API models
Package dpa 商品广告相关API models
Package dpa 商品广告相关API models
Package eventmanager 资产 - 事件管理 相关API models
Package eventmanager 资产 - 事件管理 相关API models
Package file 素材管理相关API models
Package file 素材管理相关API models
Package keyword 关键词管理
Package keyword 关键词管理
Package majordomo 管家账号相关API models
Package majordomo 管家账号相关API models
Package oauth OAuth授权相关API models
Package oauth OAuth授权相关API models
Package privativeword 包含否定词相关API models
Package privativeword 包含否定词相关API models
Package qianchuan 巨量千穿
Package qianchuan 巨量千穿
ad
Package ad 广告计划
Package ad 广告计划
aweme
Package aweme 千川授权抖音号相关API models
Package aweme 千川授权抖音号相关API models
campaign
Package campaign 广告组管理
Package campaign 广告组管理
creative
Package creative 广告创意
Package creative 广告创意
dmp
Package dmp DMP人群管理
Package dmp DMP人群管理
file
Package file 素材管理API models
Package file 素材管理API models
product
Package product 千川商品相关API models
Package product 千川商品相关API models
report
Package report 数据报表
Package report 数据报表
shop
Package shop 店铺相关
Package shop 店铺相关
Package report 数据报表相关API models
Package report 数据报表相关API models
asynctask
Package asynctask 异步数据报表相关API Models
Package asynctask 异步数据报表相关API Models
audience
Package audience 受众分析数据报表 API models
Package audience 受众分析数据报表 API models
liveroom
Package liveroom 直播分析数据报表 API models
Package liveroom 直播分析数据报表 API models
Package servemarket 应用市场 相关 API Models
Package servemarket 应用市场 相关 API Models
Package spda SPDA 相关API models
Package spda SPDA 相关API models
Package spi SPI推送相关API models
Package spi SPI推送相关API models
Package star 巨量星图
Package star 巨量星图
Package tools 工具相关API models
Package tools 工具相关API models
adconvert
Package adconvert 转化目标管理 API Models
Package adconvert 转化目标管理 API Models
adpreview
Package adpreview 广告预览相关API models
Package adpreview 广告预览相关API models
adraise
Package adraise 一键起量相关API
Package adraise 一键起量相关API
aweme
Package aweme 抖音达人
Package aweme 抖音达人
clue
Package clue 线索及建站工具API 相关models
Package clue 线索及建站工具API 相关models
comment
Package comment 评论管理
Package comment 评论管理
creativeword
Package creativeword 动态创意词包管理
Package creativeword 动态创意词包管理
diagnosis
Package diagnosis 获取计划诊断信息
Package diagnosis 获取计划诊断信息
interestaction
Package interestaction 行为兴趣关键词管理
Package interestaction 行为兴趣关键词管理
landinggroup
Package landinggroup 程序化落地页管理 API models
Package landinggroup 程序化落地页管理 API models
log
Package log 工具-查询工具-日志查询API models
Package log 工具-查询工具-日志查询API models
site
Package site 橙子建站落地页管理 API models
Package site 橙子建站落地页管理 API models
sitetemplate
Package sitetemplate 橙子建站模版管理 API models
Package sitetemplate 橙子建站模版管理 API models
taskraise
Package taskraise 账户优选起量 API models
Package taskraise 账户优选起量 API models
thirdsite
Package thirdsite 第三方落地页管理API models
Package thirdsite 第三方落地页管理API models
union
Package union 穿山流量相关
Package union 穿山流量相关
Package track 数据上报管理相关API models
Package track 数据上报管理相关API models

Jump to

Keyboard shortcuts

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