refactor(api): standardizate API Router

This commit is contained in:
MingxuanGame
2025-08-28 13:18:06 +00:00
parent 3c5336ed61
commit c7f6c76b0f
14 changed files with 73 additions and 94 deletions

View File

@@ -14,10 +14,7 @@ from fastapi import Body, HTTPException, Security
from sqlmodel import exists, select
@router.post(
"/rename",
name="修改用户名",
)
@router.post("/rename", name="修改用户名", tags=["用户", "g0v0 API"])
async def user_rename(
session: Database,
new_name: str = Body(..., description="新的用户名"),