special error

This commit is contained in:
withchao
2023-03-14 15:42:52 +08:00
parent e9eea7cd9a
commit b5a080623c
3 changed files with 19 additions and 0 deletions
+2
View File
@@ -40,6 +40,8 @@ const (
CallbackError = 80000
)
const DuplicateKeyError = 12345
// 账号错误码
const (
UserIDNotFoundError = 91001 //UserID不存在 或未注册
+1
View File
@@ -41,6 +41,7 @@ var (
ErrTokenNotExist = NewCodeError(TokenNotExistError, "TokenNotExistError") //在redis中不存在
ErrTokenDifferentPlatformID = NewCodeError(TokenDifferentPlatformIDError, "TokenDifferentPlatformIDError")
ErrTokenDifferentUserID = NewCodeError(TokenDifferentUserIDError, "TokenDifferentUserIDError")
ErrDuplicateKey = NewCodeError(DuplicateKeyError, "DuplicateKeyError")
ErrMessageHasReadDisable = NewCodeError(MessageHasReadDisable, "MessageHasReadDisable")