From 005f9020a190a59172feb0b9228552f0774a7f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Fri, 9 Jun 2023 06:06:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(park):=E4=BF=AE=E6=AD=A3=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E7=94=A8=E6=88=B7=E5=9B=AD=E5=8C=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/park.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/park.go b/controller/park.go index 68f27c2..2733f41 100644 --- a/controller/park.go +++ b/controller/park.go @@ -68,9 +68,9 @@ func listParksBelongsToCurrentUser(c *fiber.Ctx) error { // 列出隶属于指定用户的全部园区 func listParksBelongsTo(c *fiber.Ctx) error { result := response.NewResult(c) - userId := c.Params("userId") + userId := c.Params("uid") parkLog.Info("列出指定用户下的全部园区", zap.String("user id", userId)) - parks, err := repository.ParkRepository.RetrieveParkBelongs(userId) + parks, err := repository.ParkRepository.ListAllParks(userId) if err != nil { parkLog.Error("无法获取园区列表。", zap.String("user id", userId)) return result.Error(http.StatusInternalServerError, err.Error())