param.go 574 B

12345678910111213141516171819202122232425262728
  1. package model
  2. // ParamMid is.
  3. type ParamMid struct {
  4. Mid int64 `form:"mid" validate:"gt=0,required"`
  5. }
  6. // ParamMids is.
  7. type ParamMids struct {
  8. Mids []int64 `form:"mids,split" validate:"gt=0,dive,gt=0"`
  9. }
  10. // ParamNames is.
  11. type ParamNames struct {
  12. Names []string `form:"names,split" validate:"gt=0,dive,gt=0"`
  13. }
  14. // ParamModify is.
  15. type ParamModify struct {
  16. Mid int64 `form:"mid" validate:"gt=0,required"`
  17. ModifiedAttr string `form:"modifiedAttr" validate:"gt=0,required"`
  18. }
  19. // ParamMsg is.
  20. type ParamMsg struct {
  21. // by notify
  22. Msg string `form:"msg"`
  23. }