group.go 534 B

12345678910111213141516171819
  1. package validator
  2. //AddGroupParams add group params validate
  3. type AddGroupParams struct {
  4. Name string `form:"name" validate:"required"`
  5. Desc string `form:"desc" validate:"required"`
  6. }
  7. //UpdateGroupParams update group params validate
  8. type UpdateGroupParams struct {
  9. ID int `form:"id" validate:"required"`
  10. Name string `form:"name" validate:"required"`
  11. Desc string `form:"desc" validate:"required"`
  12. }
  13. //DeleteGroupParams delete group params validate
  14. type DeleteGroupParams struct {
  15. ID int `form:"id" validate:"required"`
  16. }