add api handler
This commit is contained in:
@@ -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 != ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user