17 lines
1010 B
Plaintext
17 lines
1010 B
Plaintext
|
|
插入临时数据: user_id=9 charge_records=[17, 18] (333Wh + 222Wh)
|
||
|
|
|
||
|
|
--- GET /api/pms/energy-stats/summary [HTTP 200]
|
||
|
|
{"code": 0, "data": {"cabinet_count": 1, "estimated_cost": 0.44, "month_energy": 555, "online_count": 1, "today_energy": 222}, "message": "ok"}
|
||
|
|
|
||
|
|
--- GET /api/pms/energy-stats/cabinets [HTTP 200]
|
||
|
|
{"code": 0, "data": [{"abstract_id": "", "cabinet_id": 1, "month_energy": 555, "name": "TCP-E2E-SMOKE", "today_energy": 222}], "message": "ok"}
|
||
|
|
|
||
|
|
--- GET /api/pms/energy-stats/projects [HTTP 200]
|
||
|
|
{"code": 0, "data": [{"cabinet_count": 1, "month_energy": 555, "name": "联调测试项目", "project_id": 1, "today_energy": 222}], "message": "ok"}
|
||
|
|
|
||
|
|
--- GET /api/pms/energy-stats/trend?granularity=day&range=30 [HTTP 200]
|
||
|
|
{"code": 0, "data": {"granularity": "day", "list": [{"charge_count": 1, "energy": 222, "period": "2026-09-19"}, {"charge_count": 1, "energy": 333, "period": "2026-09-20"}]}, "message": "ok"}
|
||
|
|
|
||
|
|
已清理: charge_records [17, 18] 与 user_id=9
|
||
|
|
charge_records 剩余行数 = 0
|