This commit is contained in:
Yun
2023-09-17 18:05:01 +08:00
parent 1bbc7db405
commit b58d50778d
14 changed files with 661 additions and 16 deletions
+2 -2
View File
@@ -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
}