From 008a7b1d4c0b17fdb0a00bf23894212f305f1e94 Mon Sep 17 00:00:00 2001 From: weijuesen Date: Thu, 13 Aug 2026 14:34:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(server-go):=20=E5=81=A5=E5=BA=B7=E7=94=BB?= =?UTF-8?q?=E5=83=8F=20handler=20=E8=AF=BB=E5=8F=96=20roomId=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=EF=BC=88=E6=AD=A4=E5=89=8D=E5=8F=96=E7=A9=BA=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=20404=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-go/internal/handler/health.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-go/internal/handler/health.go b/server-go/internal/handler/health.go index 2bcb4fd..d5f3396 100644 --- a/server-go/internal/handler/health.go +++ b/server-go/internal/handler/health.go @@ -29,7 +29,7 @@ func RegisterHealthProfileRoutes(rg *gin.RouterGroup, db *gorm.DB) { // roomHealthProfile 单蚕房健康画像:巡检风险/检测结果/事件聚合 → 综合健康分 func roomHealthProfile(db *gorm.DB) gin.HandlerFunc { return func(c *gin.Context) { - id := c.Param("id") + id := c.Param("roomId") var room model.Room if db.Where("id = ?", id).First(&room).Error != nil { c.JSON(http.StatusNotFound, gin.H{"error": "room not found"})