param.go 783 B

123456789101112131415161718192021222324252627282930313233343536
  1. package model
  2. // Pager .
  3. type Pager struct {
  4. Pn int `form:"pn" validate:"min=1" default:"1"`
  5. Ps int `form:"ps" validate:"min=1" default:"10"`
  6. }
  7. // ParamMngBusiness .
  8. type ParamMngBusiness struct {
  9. ID int64 `form:"id"`
  10. Name string `form:"name"`
  11. Desc string `form:"desc"`
  12. Apps string `form:"apps"`
  13. IsJob bool `form:"is_job"`
  14. Pager
  15. }
  16. // ParamMngBusinessApp .
  17. type ParamMngBusinessApp struct {
  18. Business string `form:"business"`
  19. App string `form:"app"`
  20. IsJob bool `form:"is_job"`
  21. IncrWay string `form:"incr_way"`
  22. IncrOpen bool `form:"incr_open"`
  23. }
  24. // ParamMngAsset .
  25. type ParamMngAsset struct {
  26. ID int64 `form:"id"`
  27. Type int `form:"type"`
  28. Name string `form:"name"`
  29. Config string `form:"config"`
  30. Desc string `form:"desc"`
  31. Pager
  32. }