utils.go 388 B

123456789101112131415161718
  1. package model
  2. // Pager pager
  3. type Pager struct {
  4. Pn int `json:"num"`
  5. Ps int `json:"size"`
  6. Sum int64 `json:"total"`
  7. }
  8. // ListParser list parser
  9. type ListParser struct {
  10. Unames string `form:"uname"`
  11. Bt string `form:"bt"`
  12. Et string `form:"et"`
  13. Sort string `form:"sort" default:"desc"`
  14. Ps int64 `form:"ps" default:"20"`
  15. Pn int64 `form:"pn" default:"1"`
  16. }