add api handler

This commit is contained in:
Adrian Zürcher
2025-10-24 16:09:01 +02:00
parent a797700685
commit 090cf0c1cc
10 changed files with 535 additions and 357 deletions

View File

@@ -5,3 +5,7 @@ type Role struct {
Role string `gorm:"column:role" json:"role"`
Permissions Permissions `gorm:"type:json" json:"permissions"`
}
func (r *Role) IsValid() bool {
return r.Role != ""
}