huang
a202b2da8a
feat(03.1-01): 建立设备实时 Gateway 调用链路,替换 mock 数据
- GetRealtimeStatus() device case 新增 Gateway sync-info 实时调用(IMEI/SN 优先,gatewayClient nil 安全)
- 新增 mapSyncRespToDeviceGatewayInfo() 将 SyncDeviceInfoResp 映射为 B 端 DeviceGatewayInfo DTO
- 新增 strPtr() 辅助函数(空字符串→nil,防止 JSON 出现大量空字符串字段)
- client_asset.go 删除 buildMockDeviceRealtime(),改为调用 assetService.GetRealtimeStatus() 获取真实数据
- 新增 mapDeviceGatewayInfoToClientInfo() 将 B 端 DeviceGatewayInfo 映射为 C 端 DeviceRealtimeInfo
- Gateway 调用失败时 DeviceRealtime 返回 null,不阻断主流程
2026-03-28 13:21:02 +08:00
..
2026-03-28 11:38:14 +08:00
2026-03-28 13:17:52 +08:00
2026-03-28 13:21:02 +08:00
2026-03-19 11:33:41 +08:00
2026-03-28 13:17:52 +08:00
2026-03-28 10:39:18 +08:00
2026-03-28 11:38:14 +08:00
2026-03-28 13:21:02 +08:00
2026-03-28 11:36:40 +08:00
2026-03-28 10:40:08 +08:00