From 617fdc2cfcafef5d895fb5df2e5f120ce902d7cf Mon Sep 17 00:00:00 2001 From: MingxuanGame Date: Sat, 30 Aug 2025 12:08:31 +0000 Subject: [PATCH] fix(api): see details /team/{team_id}: fix tag typo beatmapset: remove download-service API API Doc: fix v1 APi prefix --- app/router/private/team.py | 2 +- app/router/v2/beatmapset.py | 14 -------------- main.py | 2 +- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/app/router/private/team.py b/app/router/private/team.py index a1e32de..5b5857d 100644 --- a/app/router/private/team.py +++ b/app/router/private/team.py @@ -188,7 +188,7 @@ class TeamQueryResp(BaseModel): members: list[UserResp] -@router.get("/team/{team_id}", name="查询战队", response_model=TeamQueryResp, tags=["用户", "g0v0 API"]) +@router.get("/team/{team_id}", name="查询战队", response_model=TeamQueryResp, tags=["战队", "g0v0 API"]) async def get_team( session: Database, team_id: int = Path(..., description="战队 ID"), diff --git a/app/router/v2/beatmapset.py b/app/router/v2/beatmapset.py index 8e2f95f..2ddb1b1 100644 --- a/app/router/v2/beatmapset.py +++ b/app/router/v2/beatmapset.py @@ -215,17 +215,3 @@ async def favourite_beatmapset( else: await db.delete(existing_favourite) await db.commit() - - -@router.get( - "/beatmapsets/download-status", - tags=["谱面集"], - name="下载服务状态", - description="获取谱面下载服务的健康状态和负载均衡信息。", -) -async def get_download_service_status( - current_user: User = Security(get_current_user, scopes=["public"]), - download_service: BeatmapDownloadService = Depends(get_beatmap_download_service), -): - """获取下载服务状态""" - return download_service.get_service_status() diff --git a/main.py b/main.py index da24190..7a026db 100644 --- a/main.py +++ b/main.py @@ -86,7 +86,7 @@ desc = f"""osu! API 模拟服务器,支持 osu! API v1, v2 和 osu!lazer 的 ## 端点说明 -所有 v2 API 均以 `/api/v2/` 开头,所有 v1 API 均以 `/api/v1` 开头(直接访问 `/api` 的 v1 API 会进行重定向)。 +所有 v2 API 均以 `/api/v2/` 开头,所有 v1 API 均以 `/api/v1/` 开头(直接访问 `/api` 的 v1 API 会进行重定向)。 所有 g0v0-server 提供的额外 API(g0v0-api) 均以 `/api/private/` 开头。