sys

package
v0.0.0-...-497d345 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: MIT Imports: 6 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()

CreateRoot 建立root用户

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