添加授权列表返回token有效期

This commit is contained in:
18610128193
2026-06-30 09:23:09 +08:00
parent c05639fb47
commit 7c2071aa80
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -147,6 +147,10 @@ async def oauth_list(
"open_type": oauth.open_type,
"port_type": oauth.port_type,
"appid": oauth.appid,
"access_token": oauth.access_token,
"access_token_expired": oauth.access_token_expired,
"refresh_token": oauth.refresh_token,
"refresh_token_expired": oauth.refresh_token_expired,
"material_auth_status": oauth.material_auth_status,
"created_at": oauth.created_at,
"updated_at": oauth.updated_at,
+4
View File
@@ -26,6 +26,10 @@ class UserOAuthOut(BaseModel):
open_type: int = Field(..., description="开户方式(1=千川,2=广告,3=本地推,4=星图,5=快手代理商,6=巨量星图,7=巨量服务单,8=腾讯服务单,9=腾讯营销K2,10=腾讯营销K3)")
port_type: int = Field(..., description="平台端口(1=巨量,2=磁力,3=巨量星图,4=服务单,5=腾讯)")
appid: Optional[str] = Field(None, description="授权应用id")
access_token: Optional[str] = Field(None, description="授权token")
access_token_expired: Optional[datetime] = Field(None, description="token过期时间")
refresh_token: Optional[str] = Field(None, description="授权刷新token")
refresh_token_expired: Optional[datetime] = Field(None, description="刷新token过期时间")
material_auth_status: bool = Field(False, description="是否敏感物料授权")
created_at: datetime = Field(..., description="创建时间")
updated_at: datetime = Field(..., description="更新时间")