提交
This commit is contained in:
@@ -6,8 +6,8 @@ package response
|
||||
import (
|
||||
"math"
|
||||
"net/http"
|
||||
"yunink/app/pkg/langx"
|
||||
|
||||
"code.yun.ink/open/utils/langx"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -19,7 +19,7 @@ type pagination struct {
|
||||
}
|
||||
|
||||
// 分页查询
|
||||
func PageToOffset(page, size int) (offset int, limit int) {
|
||||
func GetOffset(page, size int) (offset int, limit int) {
|
||||
if page <= 0 {
|
||||
page = 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user