Create & Init Project...
This commit is contained in:
19
app/service/openplatform/abtest/model/validator/group.go
Normal file
19
app/service/openplatform/abtest/model/validator/group.go
Normal file
@ -0,0 +1,19 @@
|
||||
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"`
|
||||
}
|
Reference in New Issue
Block a user