From 68c34f540f1668c37253dca7cb95df9a13be4031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Mon, 15 Aug 2022 13:09:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(user):=E6=94=B9=E6=AD=A3=E4=B8=80=E5=A4=84?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E5=AD=98=E5=9C=A8=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E8=B0=83=E7=94=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/user.go b/service/user.go index 3088af2..bbf3f91 100644 --- a/service/user.go +++ b/service/user.go @@ -256,7 +256,7 @@ func (_UserService) SearchLimitUsers(keyword string, limit int) ([]model.JoinedU Or(builder.Like{"d.abbr", keyword})). And(builder.Eq{"u.type": 0}). Asc("u.created_at"). - Limit(limit). + Limit(limit, 0). Find(&users) if err != nil { return make([]model.JoinedUserDetail, 0), err