👋这是

This commit is contained in:
coward 2024-11-06 09:10:30 +08:00
parent 29c1c791d4
commit 788def6dc4

View File

@ -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