同步音频和图片
This commit is contained in:
48
model/dto/tencent/account_relation_dto.go
Normal file
48
model/dto/tencent/account_relation_dto.go
Normal file
@@ -0,0 +1,48 @@
|
||||
package tencent
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
// GetAccountRelationReq 获取账户关系请求
|
||||
type GetAccountRelationReq struct {
|
||||
g.Meta `path:"/getAccountRelation" method:"post" tags:"腾讯广告账户关系" summary:"获取账户关系列表" dc:"从腾讯广告API获取账户关系数据"`
|
||||
AccessToken string `json:"access_token" dc:"访问令牌"`
|
||||
Timestamp int64 `json:"timestamp" dc:"时间戳"`
|
||||
Nonce string `json:"nonce" dc:"随机字符串"`
|
||||
PaginationMode string `json:"pagination_mode" dc:"分页模式" d:"PAGINATION_MODE_NORMAL"`
|
||||
Page int `json:"page" dc:"页码" d:"1"`
|
||||
PageSize int `json:"page_size" dc:"每页数量" d:"100"`
|
||||
}
|
||||
|
||||
// SyncAccountRelationReq 同步账户关系请求
|
||||
type SyncAccountRelationReq struct {
|
||||
g.Meta `path:"/syncAccountRelation" method:"post" tags:"腾讯广告账户关系" summary:"同步账户关系" dc:"自动分页获取所有账户关系并保存到数据库"`
|
||||
AccessToken string `json:"access_token" dc:"访问令牌(可选,不传则从配置读取)"`
|
||||
}
|
||||
|
||||
// SyncAccountRelationRes 同步账户关系响应
|
||||
type SyncAccountRelationRes struct {
|
||||
TotalNumber int `json:"total_number" dc:"总记录数"`
|
||||
TotalPage int `json:"total_page" dc:"总页数"`
|
||||
SyncedCount int `json:"synced_count" dc:"同步成功数量"`
|
||||
Message string `json:"message" dc:"消息"`
|
||||
}
|
||||
|
||||
// ListAccountRelationReq 获取账户关系列表请求
|
||||
type ListAccountRelationReq struct {
|
||||
g.Meta `path:"/listAccountRelation" method:"post" tags:"腾讯广告账户关系" summary:"获取账户关系列表" dc:"从本地数据库查询账户关系列表"`
|
||||
}
|
||||
|
||||
// ListAccountRelationRes 获取账户关系列表响应
|
||||
type ListAccountRelationRes struct {
|
||||
List []AccountRelationItem `json:"list" dc:"账户关系列表"`
|
||||
}
|
||||
|
||||
// AccountRelationItem 账户关系项
|
||||
type AccountRelationItem struct {
|
||||
ID int64 `json:"id" dc:"主键ID"`
|
||||
AccountID int64 `json:"account_id" dc:"账户ID"`
|
||||
CorporationName string `json:"corporation_name" dc:"公司名称"`
|
||||
IsAdx bool `json:"is_adx" dc:"是否ADX"`
|
||||
IsBid bool `json:"is_bid" dc:"是否BID"`
|
||||
IsMp bool `json:"is_mp" dc:"是否MP"`
|
||||
}
|
||||
Reference in New Issue
Block a user