sys

package
v0.0.0-...-ae94dc8 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// 定义系统初始的角色
	Components = [][]string{
		{"admin", "/admin*", "GET|POST|DELETE|PUT", ".*", "角色管理"},
		{"demo", "/demo*", "GET|POST|DELETE|PUT", ".*", "demo角色"},
	}
)

Functions

func CheckRootExit

func CheckRootExit() bool

检查超级用户是否存在

func CreateRoot

func CreateRoot()

func CreateSystemRole

func CreateSystemRole() bool

创建系统默认角色

Types

This section is empty.

Jump to

Keyboard shortcuts

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