feat: roles system backend
This commit is contained in:
1 parent
44cca46d5e
commit
8c6c6456da
50 files changed
+2578
-22
No files matched your search
@@ -0,0 +1,10 @@
|
||||
package role
|
||||
|
||||
type Repository interface {
|
||||
List() ([]Role, error)
|
||||
Get(id uint32) (Role, error)
|
||||
GetByName(name string) (Role, error)
|
||||
ListGrants(roleID uint32) ([]Grant, error)
|
||||
Create(created Role) (Role, error)
|
||||
Save(saved Role) (Role, error)
|
||||
}
|
||||
Reference in new issue
Block a user