Documentation ¶
Index ¶
- Constants
- func AddUser(user *User) error
- func AddUserGroup(userGroup *UserGroup) error
- func DeleteUser(loginName string) error
- func DeleteUserGroup(groupName string) error
- func GetGuestPageRights() map[string]string
- func MarshalGroupRights(rights GroupRights) (string, error)
- func VerifyUser(loginName string, password string) (bool, error)
- type GroupRights
- type User
- type UserGroup
Constants ¶
View Source
const ( LOGIN_NAME_FIELD = "login_name" PASSWORD_FIELD = "password" EMAIL_FIELD = "email" MOBILE_PHONE_FIELD = "mobile_phone" GROUP_FIELD = "group" REMARK_FIELD = "remark" )
user
View Source
const ( NORMAL_USER_GROUP_NAME = "normal" ADMIN_USER_GROUP_NAME = "admin" )
user group
Variables ¶
This section is empty.
Functions ¶
func AddUserGroup ¶
func DeleteUser ¶
func DeleteUserGroup ¶
func GetGuestPageRights ¶
func MarshalGroupRights ¶
func MarshalGroupRights(rights GroupRights) (string, error)
Types ¶
type GroupRights ¶
func UnmarshalGroupRights ¶
func UnmarshalGroupRights(literals string) (GroupRights, error)
type User ¶
Click to show internal directories.
Click to hide internal directories.