role

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = module.Module{
	ModuleName:    "role",
	ModuleVersion: "1.2.0",
	ModuleConfig:  roleConfig,
	ModuleDepends: []string{},
	ModuleEnv:     map[string]any{},
	ModuleExport:  map[string]any{},
	ModulePerm: map[string]string{
		"role.view":          "查看当前角色",
		"role.create":        "创建角色",
		"role.update":        "更新角色",
		"role.delete":        "删除角色",
		"role.viewall":       "查看所有角色",
		"permission.viewall": "查看所有权限",
	},
	EntryPoint: entry,
}

Functions

func GetAllPermissionsService

func GetAllPermissionsService(auth *model.AuthInfo) *model.ApiJson

func GetPermissionService

func GetPermissionService(name string, auth *model.AuthInfo) *model.ApiJson

Types

This section is empty.

Jump to

Keyboard shortcuts

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