Documentation ¶
Index ¶
Constants ¶
View Source
const Prefix = "role"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiResource ¶
type Casbin ¶
type Casbin struct {
// contains filtered or unexported fields
}
func NewGormCasbin ¶
func (*Casbin) AddPermissions ¶
func (c *Casbin) AddPermissions(roleId int, apiResource []ApiResource) (bool, error)
Click to show internal directories.
Click to hide internal directories.