[feat] 区分用户无权限和未登录
This commit is contained in:
parent
e1fc968fb2
commit
e61862bd42
1
errno.go
1
errno.go
@ -64,6 +64,7 @@ var (
|
||||
ErrTokenNotFound = &Errno{Code: 20202, Msg: "token 不存在"}
|
||||
|
||||
// 用户错误, 前缀为 203
|
||||
ErrUserNotLogin = &Errno{Code: 20300, Msg: "请登录"}
|
||||
ErrUserNotFound = &Errno{Code: 20301, Msg: "用户没找到"}
|
||||
ErrUserPassword = &Errno{Code: 20302, Msg: "用户名或密码错误"}
|
||||
ErrUserAuth = &Errno{Code: 20303, Msg: "无权限"}
|
||||
|
Loading…
Reference in New Issue
Block a user