casbinplug

package
v0.0.0-...-9b07b7c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadRoleMenuPolicy

func LoadRoleMenuPolicy(db *gorm.DB, sRoleMenu *schemago.SRoleMenu, model model.Model) error

LoadRoleMenuPolicy 加载角色对应权限 p

func LoadUserRoleGroup

func LoadUserRoleGroup(db *gorm.DB, userid string, model model.Model) error

LoadUserRoleGroup 加载用户对应角色 g

func RemoveRoleMenuPolicy

func RemoveRoleMenuPolicy(roleid string, model model.Model) error

RemoveRoleMenuPolicy 清掉角色权限 p

func RemoveUserRoleGroup

func RemoveUserRoleGroup(userid string, model model.Model) error

RemoveUserRoleGroup 用户角色 g

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL