[feat] 丰富 20300 错误提示

This commit is contained in:
what 2023-12-27 10:39:55 +08:00
parent cc13271821
commit 8ed7df206b

View File

@ -64,7 +64,7 @@ var (
ErrTokenNotFound = &Errno{Code: 20202, Msg: "token 不存在"}
// 用户错误, 前缀为 203
ErrUserNotLogin = &Errno{Code: 20300, Msg: "请登录"}
ErrUserNotLogin = &Errno{Code: 20300, Msg: "请登录"}
ErrUserNotFound = &Errno{Code: 20301, Msg: "用户没找到"}
ErrUserPassword = &Errno{Code: 20302, Msg: "用户名或密码错误"}
ErrUserAuth = &Errno{Code: 20303, Msg: "无权限"}