M8-T16: add thermal meter cost APIs

This commit is contained in:
2026-08-23 21:22:06 +02:00
parent 489e5b596a
commit 3eec701448
12 changed files with 1843 additions and 19 deletions
+2 -1
View File
@@ -891,7 +891,7 @@ T01T06 先把现有 DSMR 安全迁到统一 source/bindingT07T11 再接
### M8-T16 — Thermal Prices / Costs / Summary / Recompute API
- **Status**: `todo`
- **Status**: `done`
- **Depends**: M8-T15
- **Context**: 对外提供 scope-aware 价格和新的热力账本,不破坏既有 electricity 路由响应。
@@ -900,6 +900,7 @@ T01T06 先把现有 DSMR 安全迁到统一 source/bindingT07T11 再接
- `create app/api/routes/api/meter_costs.py`
- `modify app/schemas/energy.py`
- `modify app/api/routes/api/energy.py`
- `modify app/services/meter_cost.py`
- `modify app/main.py`
- `create tests/test_meter_cost_api.py`
- `modify tests/test_api_energy.py`