pagination.go 444 B

12345678910111213141516171819202122232425
  1. package model
  2. // Page is.
  3. type Page struct {
  4. Num int `json:"num"`
  5. Size int `json:"size"`
  6. Total int `json:"total"`
  7. }
  8. // CommonPagination is.
  9. type CommonPagination struct {
  10. Page Page `json:"page"`
  11. }
  12. // MemberPagination is.
  13. type MemberPagination struct {
  14. Members interface{} `json:"members"`
  15. *CommonPagination
  16. }
  17. // FaceRecordPagination is.
  18. type FaceRecordPagination struct {
  19. Records interface{} `json:"records"`
  20. *CommonPagination
  21. }