feat: roles, permissions
This commit is contained in:
12
app/model/permission.go
Normal file
12
app/model/permission.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package model
|
||||
|
||||
import "git.ma-al.com/goc_daniel/b2b/app/delivery/middleware/perms"
|
||||
|
||||
type Permission struct {
|
||||
ID uint
|
||||
Name perms.Permission
|
||||
}
|
||||
|
||||
func (Permission) TableName() string {
|
||||
return "b2b_permissions"
|
||||
}
|
||||
Reference in New Issue
Block a user