model

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 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,omitempty"`
	// Message 返回信息
	Message string `json:"message,omitempty"`
	// 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

func (*FlexUint64) UnmarshalJSON added in v1.4.2

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

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 agent 代理商相关API models
Package agent 代理商相关API models
Package audiencepackage 定向包管理
Package audiencepackage 定向包管理
Package conversion 新版转换回传API models
Package conversion 新版转换回传API models
Package creative 广告创意模块API models
Package creative 广告创意模块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 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 广告计划
campaign
Package campaign 广告组管理
Package campaign 广告组管理
creative
Package creative 广告创意
Package creative 广告创意
dmp
Package dmp DMP人群管理
Package dmp DMP人群管理
report
Package report 数据报表
Package report 数据报表
shop
Package shop 店铺相关
Package shop 店铺相关
Package report 数据报表相关API models
Package report 数据报表相关API models
audience
Package audience 受众分析数据报表 API models
Package audience 受众分析数据报表 API models
liveroom
Package liveroom 直播分析数据报表 API models
Package liveroom 直播分析数据报表 API models
Package sip SPI推送相关API models
Package sip SPI推送相关API models
Package star 巨量星图
Package star 巨量星图
Package tools 工具相关API models
Package tools 工具相关API models
adraise
Package adraise 一键起量相关API
Package adraise 一键起量相关API
aweme
Package aweme 抖音达人
Package aweme 抖音达人
comment
Package comment 评论管理
Package comment 评论管理
creativeword
Package creativeword 动态创意词包管理
Package creativeword 动态创意词包管理
diagnosis
Package diagnosis 获取计划诊断信息
Package diagnosis 获取计划诊断信息
event
Package event 资产 - 事件管理 相关API models
Package event 资产 - 事件管理 相关API models
interestaction
Package interestaction 行为兴趣关键词管理
Package interestaction 行为兴趣关键词管理
log
Package log 工具-查询工具-日志查询API models
Package log 工具-查询工具-日志查询API models
thirdsite
Package thirdsite 第三方落地页管理API models
Package thirdsite 第三方落地页管理API models
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