acl

package
v0.0.0-...-8d59c21 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(roleId uint32)

Generate 生成所有关联某个角色的权限 修改角色关联权限后使用该方法更新

func GenerateByRoles

func GenerateByRoles(roles string) string

GenerateByRoles 生成角色集合的权限列表 修改了用户的角色信息后,需要调用该方法更新权限

func InitAcl

func InitAcl()

func IsDefault

func IsDefault(api string) bool

func PrefabInit

func PrefabInit()

func Verify

func Verify(adminer *models.Adminer, api string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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