feat:新增接口

This commit is contained in:
zhangyongcai
2026-09-10 23:21:30 +08:00
parent bd7adfd919
commit ea091c041b
25 changed files with 897 additions and 20 deletions
+5 -1
View File
@@ -1,6 +1,7 @@
"""应用入口:四库异步生命周期 + 中间件 + 全局异常 + 路由装配。"""
from contextlib import asynccontextmanager
import uvicorn
from fastapi import FastAPI
from api.router import api_router
@@ -28,4 +29,7 @@ app.include_router(api_router)
@app.get("/")
async def root():
return {"message": "智能公募基金系统 API", "docs": "/docs"}
return {"message": "智能公募基金系统 API", "docs": "/docs"}
if __name__ == '__main__':
uvicorn.run(app, host="127.0.0.1", port=8001)