You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
534 B
19 lines
534 B
package validator |
|
|
|
//AddGroupParams add group params validate |
|
type AddGroupParams struct { |
|
Name string `form:"name" validate:"required"` |
|
Desc string `form:"desc" validate:"required"` |
|
} |
|
|
|
//UpdateGroupParams update group params validate |
|
type UpdateGroupParams struct { |
|
ID int `form:"id" validate:"required"` |
|
Name string `form:"name" validate:"required"` |
|
Desc string `form:"desc" validate:"required"` |
|
} |
|
|
|
//DeleteGroupParams delete group params validate |
|
type DeleteGroupParams struct { |
|
ID int `form:"id" validate:"required"` |
|
}
|
|
|