增加前测模板

This commit is contained in:
18610128193
2026-06-17 14:19:13 +08:00
parent 2a8855d9ea
commit 15179cd2a4
5 changed files with 667 additions and 2 deletions
+2 -2
View File
@@ -6,13 +6,12 @@ from app.dependencies import get_current_user, get_db
from app.models.user import User
from app.models.user_oauth import UserOAuth
from app.models.user_oauth_app import UserOAuthApp
from app.schemas.user_oauth import RequestOAuthRequest, RequestOAuthResponse, UserOAuthOut
from app.schemas.user_oauth import RequestOAuthRequest, RequestOAuthResponse, UserOAuthOut, OAuthListResponse
from app.services.user_oauth_service import (
build_oauth_url,
get_token,
get_oauth_list,
)
from app.tasks.user_oauth_tasks import _update_oauth_accounts
router = APIRouter(prefix="/user-oauth", tags=["oauth"])
@@ -108,6 +107,7 @@ async def juliang_callback(
"/oauth_list",
summary="获取账户下所有授权列表",
description="获取当前用户下所有授权账户列表,支持按授权登录账号、开户方式、授权账户id筛选",
response_model=OAuthListResponse,
)
async def oauth_list(
account_userid: str | None = Query(None, description="授权登录账号id"),