Documentation ¶
Overview ¶
Package sys mananges the users, groups and roles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidUser = util.Error("无效的用户") ErrInvalidGroup = util.Error("无效的用户组") ErrGroupNotEmpty = util.Error("用户组非空") ErrAuthFailed = util.Error("身份认证失败") ErrWeakPassword = util.Error("密码过于简单") )
Errors.
View Source
var (
Root = filepath.Join(util.Root, moduleKey)
)
Config options.
Functions ¶
Types ¶
type Group ¶
type Group struct { ID web.ID Parent web.ID Name string Extra map[string]interface{} `json:",omitempty"` }
Group represents a group.
Click to show internal directories.
Click to hide internal directories.