This commit is contained in:
2026-07-06 13:54:48 +08:00
parent 30c1ea970d
commit 9c69e3b67a
+4 -4
View File
@@ -42,7 +42,7 @@ def _build_invite_link(code: str) -> str:
# ── 获取当前用户管理的团队 ──────────────────────────────
@router.get("/managed", response_model=ManagedTeamOut)
@router.get("/managed")
async def get_managed_team_info(
current_user: User = Depends(get_current_user),
db: AsyncSession = Depends(get_db),
@@ -105,7 +105,7 @@ async def transfer_credits(
# ── 邀请码管理 ────────────────────────────────────────
@router.post("/invitations", response_model=TeamInvitationOut)
@router.post("/invitations", )
async def create_invitation(
req: TeamInvitationCreate,
current_user: User = Depends(get_current_user),
@@ -184,7 +184,7 @@ async def join_by_code(
return {"message": "申请已提交,请等待团队管理人审批"}
@router.get("/join-info", response_model=JoinTeamInfoOut)
@router.get("/join-info", )
async def get_join_info(
code: str = Query(...),
current_user: User = Depends(get_current_user),
@@ -210,7 +210,7 @@ async def get_join_info(
)
@router.get("/join-requests", response_model=list[JoinRequestOut])
@router.get("/join-requests", )
async def list_join_requests(
current_user: User = Depends(get_current_user),
db: AsyncSession = Depends(get_db),