base.go 471 B

12345678910111213141516171819202122232425262728293031
  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. }
  21. // 违约规则
  22. type ContractBreach struct {
  23. MinPoint int
  24. MaxPoint int
  25. Persent float64
  26. }