chore: add pagination settings

This commit is contained in:
Noah Hsu
2022-08-27 23:07:48 +08:00
parent 37eb3dd8f5
commit 74007a1d45
2 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,8 @@
package common
type PageReq struct {
Page int `json:"page_index" form:"page"`
PerPage int `json:"page_size" form:"per_page"`
Page int `json:"page" form:"page"`
PerPage int `json:"per_page" form:"per_page"`
}
const MaxUint = ^uint(0)