Error code standardization

This commit is contained in:
skiffer-git
2023-02-13 21:36:08 +08:00
parent 4cb7a286b9
commit b27aa040f7
9 changed files with 180 additions and 170 deletions
+7 -1
View File
@@ -1,6 +1,7 @@
package notification
import (
"Open_IM/internal/common/check"
"Open_IM/pkg/common/config"
"Open_IM/pkg/common/constant"
"Open_IM/pkg/proto/msg"
@@ -9,6 +10,11 @@ import (
utils "github.com/OpenIMSDK/open_utils"
)
type Check struct {
user *check.UserCheck
group *check.GroupChecker
}
type NotificationMsg struct {
SendID string
RecvID string
@@ -21,7 +27,7 @@ type NotificationMsg struct {
SenderFaceURL string
}
func Notification(n *NotificationMsg) {
func (c *Check) Notification(n *NotificationMsg) {
var req msg.SendMsgReq
var msg sdkws.MsgData
var offlineInfo sdkws.OfflinePushInfo