base.go 496 B

123456789101112131415161718192021222324252627282930313233
  1. package model
  2. /*
  3. 基础字段
  4. */
  5. type EmptyArgs struct{}
  6. // Page 分页
  7. type Page struct {
  8. Current int `json:"current"`
  9. Size int `json:"size"`
  10. }
  11. // OrderBy 排序
  12. type OrderBy struct {
  13. Type string `json:"type"` // desc asc 正序倒序
  14. Value string `json:"value"` // 字段名称
  15. }
  16. // ListReq 列表请求实体
  17. type ListReq struct {
  18. Page
  19. OrderBy
  20. Entity interface{} `json:"entity"`
  21. }
  22. // 违约规则
  23. type ContractBreach struct {
  24. MinPoint int
  25. MaxPoint int
  26. Persent float64
  27. }