fix: 修正 realtime-status 路由文档描述,补充说明设备类型会实时调 Gateway

原描述误写为不调网关,实际 GetRealtimeStatus 对设备类型会调用 SyncDeviceInfo 接口。

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-04-15 11:16:01 +08:00
parent b972a776d9
commit 023a4309eb

View File

@@ -23,7 +23,7 @@ func registerAssetRoutes(router fiber.Router, handler *admin.AssetHandler, walle
Register(assets, doc, groupPath, "GET", "/:identifier/realtime-status", handler.RealtimeStatus, RouteSpec{
Summary: "资产实时状态",
Description: "读取 DB/Redis 中的持久化状态,不调网关。",
Description: "查询资产实时状态。卡类型:读取 DB/Redis 持久化状态;设备类型:实时调用 Gateway sync-info 接口获取最新数据Gateway 失败不阻断主流程DeviceRealtime.gateway_msg 返回失败原因)。",
Tags: []string{"资产管理"},
Input: new(dto.AssetIdentifierRequest),
Output: new(dto.AssetRealtimeStatusResponse),