mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-06 18:15:59 +08:00
Error code standardization
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package notification
|
||||
|
||||
import (
|
||||
"Open_IM/internal/rpc/msg"
|
||||
"Open_IM/pkg/common/constant"
|
||||
"Open_IM/pkg/common/log"
|
||||
sdkws "Open_IM/pkg/proto/sdkws"
|
||||
@@ -32,7 +31,7 @@ func MessageNotification(operationID, sendID, recvID string, contentType int32,
|
||||
}
|
||||
|
||||
tips.JsonDetail, _ = marshaler.MarshalToString(m)
|
||||
var n msg.NotificationMsg
|
||||
var n NotificationMsg
|
||||
n.SendID = sendID
|
||||
n.RecvID = recvID
|
||||
n.ContentType = contentType
|
||||
@@ -44,5 +43,5 @@ func MessageNotification(operationID, sendID, recvID string, contentType int32,
|
||||
log.Error(operationID, "Marshal failed ", err.Error(), tips.String())
|
||||
return
|
||||
}
|
||||
msg.Notification(&n)
|
||||
Notification(&n)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user