perm

package
v2.0.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPermActions

func BuildPermActions(values []string) string

Types

type Map

type Map struct {
	V   map[string]*Map
	Nav *navigate.Item
}
func NavTreeCached() *Map

func NewMap

func NewMap() *Map

func (*Map) Check

func (m *Map) Check(perm string) bool

Check 检测权限

func (*Map) Import

func (m *Map) Import(navList *navigate.List) *Map

Import 导入菜单(用户缓存结果)

func (*Map) Parse

func (m *Map) Parse(permActions string, navTree *Map) *Map

Parse 解析用户获取的权限

Jump to

Keyboard shortcuts

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