admin add edit status password items info
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"gorm.io/gorm"
|
||||
"pkg.local/utils"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -205,7 +206,7 @@ func (m Base) Page(w Params, retData interface{}) (PageResult, error) {
|
||||
if w.Page < DefaultPage {
|
||||
w.Page = DefaultPage
|
||||
}
|
||||
if w.Size < DefaultPage {
|
||||
if w.Size < utils.NumberOne {
|
||||
w.Size = DefaultSize
|
||||
}
|
||||
err = o.Offset((w.Page - 1) * w.Size).Limit(w.Size).Order(w.Order).Find(retData).Error
|
||||
|
||||
Reference in New Issue
Block a user