base.go 377 B

123456789101112131415161718192021222324
  1. package model
  2. /*
  3. 基础字段
  4. */
  5. // Page 分页
  6. type Page struct {
  7. Current int `json:"current"`
  8. Size int `json:"size"`
  9. }
  10. // OrderBy 排序
  11. type OrderBy struct {
  12. Type string `json:"type"` // desc asc 正序倒序
  13. Value string `json:"value"` // 字段名称
  14. }
  15. // ListReq 列表请求实体
  16. type ListReq struct {
  17. Page
  18. OrderBy
  19. Entity interface{} `json:"entity"`
  20. }