@ -1,6 +1,8 @@
package pagination
import "math"
import (
"math"
)
const (
DefaultPage = 1
@ -8,6 +10,13 @@ const (
MaxPageSize = 100
type Pagination struct {
Page int32 `json:"page"`
PageSize int32 `json:"page_size"`
TotalPage int32 `json:"total_page"`
Total int32 `json:"total"`
}
type Integer interface {
~int | ~int32