mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-10 20:15:59 +08:00
Error code standardization
This commit is contained in:
@@ -46,6 +46,13 @@ var (
|
||||
|
||||
ErrDB = ErrDatabase
|
||||
ErrSendLimit = ErrInternalServer
|
||||
|
||||
ErrBlockedByPeer = &ErrInfo{BlockedByPeer, "BlockedByPeer", ""}
|
||||
//不是对方的好友
|
||||
ErrNotPeersFriend = &ErrInfo{NotPeersFriend, "NotPeersFriend", ""}
|
||||
//
|
||||
ErrMutedInGroup = &ErrInfo{MutedInGroup, "MutedInGroup", ""}
|
||||
ErrMutedGroup = &ErrInfo{MutedGroup, "MutedGroup", ""}
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -93,6 +100,8 @@ const (
|
||||
RelationshipAlreadyError = 92001 //已经是好友关系(或者黑名单)
|
||||
NotRelationshipYetError = 92002 //不是好友关系(或者黑名单)
|
||||
CanNotAddYourselfError = 92003 //不能添加自己为好友
|
||||
BlockedByPeer = 92004 //被对方拉黑
|
||||
NotPeersFriend = 92005 //不是对方的好友
|
||||
)
|
||||
|
||||
// 群组错误码
|
||||
@@ -104,6 +113,9 @@ const (
|
||||
OwnerNotAllowedQuitError = 93004 //群主不能退群
|
||||
GroupTypeNotSupport = 93005
|
||||
GroupNoOwner = 93006
|
||||
|
||||
MutedInGroup = 93007 //群成员被禁言
|
||||
MutedGroup = 93008 //群被禁言
|
||||
)
|
||||
|
||||
// 用户错误码
|
||||
|
||||
Reference in New Issue
Block a user