看股功能更新

This commit is contained in:
2026-08-16 00:05:26 +08:00
parent 9cce670b74
commit fc86fe0674
28 changed files with 3823 additions and 96 deletions

View File

@@ -5,6 +5,7 @@ from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from sqlalchemy import text
from . import cache
from .api import router
from .auth_api import router as auth_router
from .config import settings
@@ -17,6 +18,7 @@ async def lifespan(app: FastAPI):
await conn.execute(text("SELECT 1"))
yield
await engine.dispose()
await cache.aclose() # 释放 Redis 连接池(未启用时是 no-op
app = FastAPI(