From ebb4a4ae27e9732cc768ae3973e7d66f938b5735 Mon Sep 17 00:00:00 2001 From: leizige <52662214+keepsilence233@users.noreply.github.com> Date: Fri, 24 May 2024 23:00:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A4=E6=96=AD=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gplus/dao.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gplus/dao.go b/gplus/dao.go index 9314e73..341496a 100644 --- a/gplus/dao.go +++ b/gplus/dao.go @@ -53,7 +53,7 @@ func NewPage[T any](current, size int) *Page[T] { if current <= 0 { current = 1 } - if size == 0 { + if size <= 0 { size = 10 } return &Page[T]{Current: current, Size: size}