feat: 更新数据模型和API路由,优化用户信息获取及设置管理
This commit is contained in:
12
main.py
12
main.py
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user