Files
Mediarr/user/user.go
T
2026-11-13 13:01:53 +01:00

27 lines
355 B
Go

package user
type User struct {
Username string
Password string
Email *string
Role string
}
type NewUserParams struct {
Username string
Password string
}
func NewUser(params NewUserParams) User {
return User{
Username: params.Username,
Password: params.Password,
}
}
func (u *User) Is(role string) bool {
return role == u.Role
}