Files
open-im-server/internal/common/notification/super_group_notification.go
T

25 lines
644 B
Go
Raw Normal View History

2023-02-10 21:04:22 +08:00
package notification
2022-05-30 15:10:26 +08:00
import (
2023-02-10 21:04:22 +08:00
"Open_IM/internal/rpc/msg"
2022-05-30 15:10:26 +08:00
"Open_IM/pkg/common/constant"
"Open_IM/pkg/common/log"
2023-02-09 20:36:34 +08:00
//sdk "Open_IM/pkg/proto/sdkws"
2022-05-30 15:10:26 +08:00
"Open_IM/pkg/utils"
2022-05-30 15:27:23 +08:00
//"github.com/golang/protobuf/jsonpb"
//"github.com/golang/protobuf/proto"
2022-05-30 15:10:26 +08:00
)
2022-06-21 14:54:42 +08:00
func SuperGroupNotification(operationID, sendID, recvID string) {
2023-02-10 21:04:22 +08:00
n := &msg.NotificationMsg{
2022-05-30 15:10:26 +08:00
SendID: sendID,
2022-06-21 14:54:42 +08:00
RecvID: recvID,
2022-06-07 19:02:19 +08:00
MsgFrom: constant.SysMsgType,
2022-05-30 15:10:26 +08:00
ContentType: constant.SuperGroupUpdateNotification,
2022-06-21 14:54:42 +08:00
SessionType: constant.SingleChatType,
2022-05-30 15:10:26 +08:00
OperationID: operationID,
}
log.NewInfo(operationID, utils.GetSelfFuncName(), string(n.Content))
2023-02-10 21:04:22 +08:00
msg.Notification(n)
2022-05-30 15:10:26 +08:00
}