From 20c4398e114a27494ce1e746f13a327208bebe73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Mon, 15 Aug 2022 21:31:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(park):=E8=8E=B7=E5=8F=96=E5=9B=AD=E5=8C=BA?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=8E=B0=E5=9C=A8=E9=BB=98=E8=AE=A4=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=A9=BA=E5=88=97=E8=A1=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repository/park.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/park.go b/repository/park.go index bfc8881..4692d39 100644 --- a/repository/park.go +++ b/repository/park.go @@ -13,7 +13,7 @@ type _ParkRepository struct{} var ParkRepo _ParkRepository func (_ParkRepository) ListAllParkBelongsTo(uid string) ([]model.Park, error) { - var parks []model.Park + parks := make([]model.Park, 0) err := global.DBConn. Where(builder.Eq{"user_id": uid}). NoAutoCondition().