From 023a4309eb8083380b1b8e3bf9d15c459c01d2fb Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 15 Apr 2026 11:16:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=20realtime-status=20?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E6=96=87=E6=A1=A3=E6=8F=8F=E8=BF=B0=EF=BC=8C?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E8=AF=B4=E6=98=8E=E8=AE=BE=E5=A4=87=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=BC=9A=E5=AE=9E=E6=97=B6=E8=B0=83=20Gateway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原描述误写为不调网关,实际 GetRealtimeStatus 对设备类型会调用 SyncDeviceInfo 接口。 Co-authored-by: Sisyphus --- internal/routes/asset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/routes/asset.go b/internal/routes/asset.go index 5b02f5b..fa9cba0 100644 --- a/internal/routes/asset.go +++ b/internal/routes/asset.go @@ -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),