feat: AI余额定时自动同步(CLI脚本+systemd每日timer+批量同步接口+前端按钮)

This commit is contained in:
gouki
2026-08-02 17:43:46 +00:00
parent 2e3e9f8b0b
commit 8ba58caaa8
7 changed files with 116 additions and 2 deletions
+2 -1
View File
@@ -19,7 +19,7 @@ from sqlmodel import Session
from app.core.config import settings
from app.core.seed import seed_providers
from app.database import assets_engine, init_db
from app.routers import agent, assets, monitor, providers, stats
from app.routers import agent, assets, monitor, providers, stats, sync
BASE_DIR = Path(__file__).resolve().parent.parent
STATIC_DIR = BASE_DIR / "static"
@@ -53,6 +53,7 @@ app.include_router(providers.router)
app.include_router(stats.router)
app.include_router(agent.router)
app.include_router(monitor.router)
app.include_router(sync.router)
app.mount("/static", StaticFiles(directory=STATIC_DIR), name="static")