- Add avatars list page with pagination, search, status filter - Add avatar detail dialog showing full info and config params - Add on/off switch (active/inactive status toggle) - Backend: avatar_service.py connects to digital avatar SQLite - Backend: /api/avatars endpoints for list, detail, status update - Sidebar menu item added below dashboard - docker-compose: mount SQLite db and set AVATAR_DB_PATH env var
14 lines
750 B
Python
Executable File
14 lines
750 B
Python
Executable File
"""API路由汇总"""
|
|
from fastapi import APIRouter
|
|
from app.api.endpoints import users, interactions, ai_models, dashboard, system, logs, avatars
|
|
|
|
router = APIRouter()
|
|
|
|
router.include_router(users.router, prefix="/users", tags=["虚拟用户管理"])
|
|
router.include_router(interactions.router, prefix="/interactions", tags=["互动记录"])
|
|
router.include_router(ai_models.router, prefix="/ai-models", tags=["AI模型配置"])
|
|
router.include_router(dashboard.router, prefix="/dashboard", tags=["数据看板"])
|
|
router.include_router(system.router, prefix="/system", tags=["系统设置"])
|
|
router.include_router(logs.router, prefix="/logs", tags=["日志管理"])
|
|
router.include_router(avatars.router, prefix="/avatars", tags=["数字分身管理"])
|