Error code standardization

This commit is contained in:
skiffer-git
2023-02-21 16:48:10 +08:00
parent ae40c8c8c0
commit 5751062605
11 changed files with 68 additions and 21 deletions
-4
View File
@@ -319,8 +319,4 @@ const BigVersion = "v2"
const LogFileName = "OpenIM.log"
const StatisticsTimeInterval = 60
const MaxNotificationNum = 500
const CurrentVersion = "v2.3.4-rc0"
+4
View File
@@ -58,6 +58,8 @@ var (
ErrConnArgsErr = &ErrInfo{ConnArgsErr, "args err, need token, sendID, platformID", ""}
ErrConnUpdateErr = &ErrInfo{ConnArgsErr, "upgrade http conn err", ""}
ErrConfig = &ErrInfo{ConfigError, "ConfigError", ""}
)
const (
@@ -91,6 +93,8 @@ const (
DataError = 90007 //数据错误
IdentityError = 90008 // 身份错误 非管理员token,且token中userID与请求userID不一致
ConfigError = 90009
)
// 账号错误码
+3 -1
View File
@@ -1,5 +1,7 @@
package constant
const (
ShowNumber = 1000
ShowNumber = 1000
StatisticsTimeInterval = 60
MaxNotificationNum = 500
)