base.go 572 B

12345678910111213141516171819202122232425262728293031323334353637
  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. }
  28. type IdRequiredReq struct {
  29. Id int `json:"id" v:"required#请输入Id"`
  30. }