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) IsError ¶
func (r BaseResponse) IsError() bool
IsError implement Response interface
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"` }
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
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package ad 广告计划相关API models
|
Package ad 广告计划相关API models |
Package agent 代理商相关API models
|
Package agent 代理商相关API models |
Package conversion 新版转换回传API models
|
Package conversion 新版转换回传API models |
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 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 tools 工具相关API models
|
Package tools 工具相关API models |
event
Package event 资产 - 事件管理 相关API models
|
Package event 资产 - 事件管理 相关API models |
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 |
Click to show internal directories.
Click to hide internal directories.