Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUserHasExists = status.Error(101, "用户名已存在") ErrUserNotFound = status.Error(102, "用户不存在") ErrEmailHasExists = status.Error(103, "邮箱已存在") ErrPhoneHasExists = status.Error(104, "手机号已存在") ErrPasswordWrong = status.Error(105, "密码错误") ErrUserDisabled = status.Error(106, "用户被禁用") )
View Source
var ( ErrNotLogin = status.Error(201, "用户未登录") ErrPermissionDenied = status.Error(202, "权限不足") ErrTokenInvalid = status.Error(203, "token无效") ErrTokenExpired = status.Error(204, "token过期") ErrTokenNotMatch = status.Error(205, "token不匹配") )
View Source
var (
ErrRoleHasExists = status.Error(301, "角色已存在")
)
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.