"""首页 / 仪表盘统计快照(供 REST 与 WebSocket 复用)""" from app.services.proxy_service import ProxyService async def get_dashboard_stats(scheduler_running: bool) -> dict: proxy_service = ProxyService() stats = await proxy_service.get_stats() stats["scheduler_running"] = scheduler_running return stats