refactor(go): remove duplicate mileage history api

This commit is contained in:
lingniu
2026-07-02 21:34:12 +08:00
parent e27af63025
commit 7c41b81654
6 changed files with 24 additions and 286 deletions

View File

@@ -32,7 +32,7 @@
1. `vehicle_mileage_points``vehicle_locations.total_mileage_km` 重复。
- 状态Go 写入链路已停止创建和写入 `vehicle_mileage_points`
- 兼容:`/api/history/mileage-points` 已改为从 `vehicle_locations` 读取 `total_mileage_km IS NOT NULL`
- 查询:不再暴露单独 `/api/history/mileage-points`,里程点直接从 `/api/history/locations` `total_mileage_km` 获取
- 生产ECS TDengine 历史库已在上线前重建,`vehicle_mileage_points` 不再存在。
2. `raw_frames.fields_json``raw_frames.parsed_json``vehicle_locations` 重复。