Files
memberApp/backend/models/role.go
Adrian Zürcher 690b7f4034
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
add new user and role table in app (in progress)
2025-10-14 16:41:20 +02:00

12 lines
186 B
Go

package models
type Role struct {
Id int `json:"id"`
Role string `json:"role"`
Rights []Rights `json:"rights"`
}
func (r *Role) IsValid() bool {
return r.Role != ""
}