stra.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package validator
  2. //VerionParams presents version params
  3. type VerionParams struct {
  4. Group int `form:"group" validate:"min=0,required"`
  5. }
  6. //ListParams presents listAb params
  7. type ListParams struct {
  8. Pn int `form:"pn" validate:"min=1,required"`
  9. Ps int `form:"ps" validate:"min=1,required"`
  10. Mstatus string `form:"mstatus" validate:"required"`
  11. Group int `form:"group"`
  12. }
  13. //AddAbParams presents addAbtest params
  14. type AddAbParams struct {
  15. Data string `form:"data" validate:"required"`
  16. Group int `form:"group"`
  17. }
  18. //UpdateAbParams presents updateAbtest params
  19. type UpdateAbParams struct {
  20. ID int `form:"id" validate:"required"`
  21. Data string `form:"data" validate:"required"`
  22. Group int `form:"group"`
  23. }
  24. //DelAbParams presents deleteAbtest params
  25. type DelAbParams struct {
  26. ID int `form:"id" validate:"required"`
  27. Group int `form:"group"`
  28. }
  29. //UpdateStatusAbParams presents updateStatusAbtest params
  30. type UpdateStatusAbParams struct {
  31. ID int `form:"id" validate:"required"`
  32. Status int `form:"status"`
  33. Modifier string `form:"modifier" validate:"required"`
  34. Group int `form:"group"`
  35. }