first commit
This commit is contained in:
12
backend/models/user.go
Normal file
12
backend/models/user.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package models
|
||||
|
||||
type User struct {
|
||||
Name string `json:"user"`
|
||||
Role string `json:"role"`
|
||||
Password string `json:"password,omitempty"`
|
||||
Settings Settings `json:"settings"`
|
||||
}
|
||||
|
||||
func (u *User) IsValid() bool {
|
||||
return u.Name != ""
|
||||
}
|
Reference in New Issue
Block a user