From 7c2071aa8086c8945cb199b1feefdd8c892bf0df Mon Sep 17 00:00:00 2001 From: 18610128193 <10574456+chenweiqiang-123@user.noreply.gitee.com> Date: Tue, 30 Jun 2026 09:23:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=88=E6=9D=83=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E8=BF=94=E5=9B=9Etoken=E6=9C=89=E6=95=88=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- video-gen-api/app/api/v1/user_oauth.py | 4 ++++ video-gen-api/app/schemas/user_oauth.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/video-gen-api/app/api/v1/user_oauth.py b/video-gen-api/app/api/v1/user_oauth.py index b46e78bc..f2e09551 100644 --- a/video-gen-api/app/api/v1/user_oauth.py +++ b/video-gen-api/app/api/v1/user_oauth.py @@ -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, diff --git a/video-gen-api/app/schemas/user_oauth.py b/video-gen-api/app/schemas/user_oauth.py index 09b4a708..40d20f4e 100644 --- a/video-gen-api/app/schemas/user_oauth.py +++ b/video-gen-api/app/schemas/user_oauth.py @@ -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="更新时间")