EditTeamOption struct (#25)

This commit is contained in:
Ethan Koenig 2016-12-07 21:20:10 -05:00 committed by Lunny Xiao
parent cb7fc56b77
commit 559190dbdc

View file

@ -18,3 +18,10 @@ type CreateTeamOption struct {
Description string `json:"description" binding:"MaxSize(255)"`
Permission string `json:"permission"`
}
// EditTeamOption options when edit team
type EditTeamOption struct {
Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(30)"`
Description string `json:"description" binding:"MaxSize(255)"`
Permission string `json:"permission"`
}