2026-04-04 18:17:10 +08:00
|
|
|
from fastapi import APIRouter
|
feat: v2.0 — maintenance module, AI analysis, station power fix
- Add full 检修维护中心 (6.4): 3-type work orders (消缺/巡检/抄表),
asset management, warehouse, work plans, billing settlement
- Add AI智能分析 tab with LLM-powered diagnostics (StepFun + ZhipuAI)
- Add AI模型配置 settings page (provider, temperature, prompts)
- Fix station power accuracy: use API station total (station_power)
instead of inverter-level computation — eliminates timing gaps
- Add 7 new DB models, 4 new API routers, 5 new frontend pages
- Migrations: 009 (maintenance expansion) + 010 (AI analysis)
- Version bump: 1.6.1 → 2.0.0
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 21:16:03 +08:00
|
|
|
from app.api.v1 import auth, users, devices, energy, monitoring, alarms, reports, carbon, dashboard, collectors, websocket, audit, settings, charging, quota, cost, maintenance, management, prediction, energy_strategy, weather, ai_ops, branding, version, kpi, assets, warehouse, work_plans, billing
|
2026-04-04 18:17:10 +08:00
|
|
|
|
|
|
|
|
api_router = APIRouter(prefix="/api/v1")
|
|
|
|
|
|
|
|
|
|
api_router.include_router(auth.router)
|
|
|
|
|
api_router.include_router(users.router)
|
|
|
|
|
api_router.include_router(devices.router)
|
|
|
|
|
api_router.include_router(energy.router)
|
|
|
|
|
api_router.include_router(monitoring.router)
|
|
|
|
|
api_router.include_router(alarms.router)
|
|
|
|
|
api_router.include_router(reports.router)
|
|
|
|
|
api_router.include_router(carbon.router)
|
|
|
|
|
api_router.include_router(dashboard.router)
|
|
|
|
|
api_router.include_router(collectors.router)
|
|
|
|
|
api_router.include_router(websocket.router)
|
|
|
|
|
api_router.include_router(audit.router)
|
|
|
|
|
api_router.include_router(settings.router)
|
|
|
|
|
api_router.include_router(charging.router)
|
|
|
|
|
api_router.include_router(quota.router)
|
|
|
|
|
api_router.include_router(cost.router)
|
|
|
|
|
api_router.include_router(maintenance.router)
|
|
|
|
|
api_router.include_router(management.router)
|
|
|
|
|
api_router.include_router(prediction.router)
|
|
|
|
|
api_router.include_router(energy_strategy.router)
|
|
|
|
|
api_router.include_router(weather.router)
|
|
|
|
|
api_router.include_router(ai_ops.router)
|
|
|
|
|
api_router.include_router(branding.router)
|
2026-04-06 22:37:09 +08:00
|
|
|
api_router.include_router(version.router)
|
|
|
|
|
api_router.include_router(kpi.router)
|
feat: v2.0 — maintenance module, AI analysis, station power fix
- Add full 检修维护中心 (6.4): 3-type work orders (消缺/巡检/抄表),
asset management, warehouse, work plans, billing settlement
- Add AI智能分析 tab with LLM-powered diagnostics (StepFun + ZhipuAI)
- Add AI模型配置 settings page (provider, temperature, prompts)
- Fix station power accuracy: use API station total (station_power)
instead of inverter-level computation — eliminates timing gaps
- Add 7 new DB models, 4 new API routers, 5 new frontend pages
- Migrations: 009 (maintenance expansion) + 010 (AI analysis)
- Version bump: 1.6.1 → 2.0.0
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 21:16:03 +08:00
|
|
|
api_router.include_router(assets.router)
|
|
|
|
|
api_router.include_router(warehouse.router)
|
|
|
|
|
api_router.include_router(work_plans.router)
|
|
|
|
|
api_router.include_router(billing.router)
|