👋这是
This commit is contained in:
parent
29c1c791d4
commit
788def6dc4
@ -3,7 +3,7 @@ package service
|
|||||||
import "gorm.io/gorm"
|
import "gorm.io/gorm"
|
||||||
|
|
||||||
func Paginate(current, size int64) func(db *gorm.DB) *gorm.DB {
|
func Paginate(current, size int64) func(db *gorm.DB) *gorm.DB {
|
||||||
// 如果页码是-1,就不分页
|
// 如果页码是-1,就不分页👋
|
||||||
if current == -1 {
|
if current == -1 {
|
||||||
return func(db *gorm.DB) *gorm.DB {
|
return func(db *gorm.DB) *gorm.DB {
|
||||||
return db
|
return db
|
||||||
|
Loading…
x
Reference in New Issue
Block a user