From 788def6dc43b8a6f6ffa27aa6b0df2c1eec50268 Mon Sep 17 00:00:00 2001 From: coward Date: Wed, 6 Nov 2024 09:10:30 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8B=E8=BF=99=E6=98=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/base.go b/service/base.go index d171ec3..cdd57ab 100644 --- a/service/base.go +++ b/service/base.go @@ -3,7 +3,7 @@ package service import "gorm.io/gorm" func Paginate(current, size int64) func(db *gorm.DB) *gorm.DB { - // 如果页码是-1,就不分页 + // 如果页码是-1,就不分页👋 if current == -1 { return func(db *gorm.DB) *gorm.DB { return db