Files
2025-08-09 18:00:36 +02:00

13 lines
242 B
Go

package models
type User struct {
Name string `json:"user"`
Role string `json:"role"`
Password string `json:"password,omitempty"`
Token string `json:"token,omitempty"`
}
func (u *User) IsValid() bool {
return u.Name != ""
}