
All checks were successful
Build Quasar SPA and Go Backend for memberApp / build-spa (push) Successful in 2m12s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, , linux) (push) Successful in 5m8s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, .exe, windows) (push) Successful in 5m8s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm, 6, , linux) (push) Successful in 4m57s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm64, , linux) (push) Successful in 5m7s
15 lines
308 B
Go
15 lines
308 B
Go
package models
|
|
|
|
type User struct {
|
|
Id int `json:"id"`
|
|
Name string `json:"user"`
|
|
Email string `json:"email"`
|
|
Role string `json:"role"`
|
|
Password string `json:"password,omitempty"`
|
|
Settings Settings `json:"settings"`
|
|
}
|
|
|
|
func (u *User) IsValid() bool {
|
|
return u.Name != ""
|
|
}
|