feat: 更新数据模型和API路由,优化用户信息获取及设置管理

This commit is contained in:
2025-12-02 21:36:19 +08:00
parent 22c8f7649f
commit 8b6e18f0e2
8 changed files with 171 additions and 72 deletions

12
main.py
View File

@@ -25,17 +25,7 @@ app = FastAPI(
# 挂载路由
for router in routers.Router:
app.include_router(
router,
prefix='/api',
responses={
200: {"description": "成功响应 Successful operation"},
401: {"description": "未授权 Unauthorized"},
403: {"description": "禁止访问 Forbidden"},
404: {"description": "未找到 Not found"},
500: {"description": "内部服务器错误 Internal server error"},
},
)
app.include_router(router, prefix='/api')
# 启动时打印欢迎信息
if __name__ == "__main__":