forked from mirrors/homebox
update data contract for users
This commit is contained in:
parent
a9f53a4671
commit
1107904f47
2 changed files with 11 additions and 16 deletions
|
@ -30,7 +30,7 @@ type UserCreate struct {
|
|||
GroupID uuid.UUID `json:"groupID"`
|
||||
}
|
||||
|
||||
func (u *UserCreate) Validate() error {
|
||||
func (u UserCreate) Validate() error {
|
||||
if u.Name == "" {
|
||||
return ErrNameEmpty
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue