修改分页

master
nikkiing 2 years ago
parent 515429ace0
commit 94ee5b93ca
  1. 0
      pagination/pagination.pb.go
  2. 11
      pagination/v1/pagination.go

@ -1,6 +1,8 @@
package pagination package pagination
import "math" import (
"math"
)
const ( const (
DefaultPage = 1 DefaultPage = 1
@ -8,6 +10,13 @@ const (
MaxPageSize = 100 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 { type Integer interface {
~int | ~int32 ~int | ~int32
} }

Loading…
Cancel
Save