同步音频和图片
This commit is contained in:
19
model/dto/tencent/oauth_dto.go
Normal file
19
model/dto/tencent/oauth_dto.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package tencent
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
// RefreshTokenReq 刷新Token请求
|
||||
type RefreshTokenReq struct {
|
||||
g.Meta `path:"/refreshToken" method:"post" tags:"腾讯广告OAuth" summary:"刷新访问令牌" dc:"使用refresh_token获取新的access_token"`
|
||||
ClientID string `json:"client_id" dc:"客户端ID"`
|
||||
ClientSecret string `json:"client_secret" dc:"客户端密钥"`
|
||||
RefreshToken string `json:"refresh_token" dc:"刷新令牌"`
|
||||
}
|
||||
|
||||
// RefreshTokenRes 刷新Token响应
|
||||
type RefreshTokenRes struct {
|
||||
AccessToken string `json:"access_token" dc:"访问令牌"`
|
||||
RefreshToken string `json:"refresh_token" dc:"新的刷新令牌"`
|
||||
AccessTokenExpiresIn int64 `json:"access_token_expires_in" dc:"访问令牌过期时间(秒)"`
|
||||
RefreshTokenExpiresIn int64 `json:"refresh_token_expires_in" dc:"刷新令牌过期时间(秒)"`
|
||||
}
|
||||
Reference in New Issue
Block a user