You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/internal/rpc/msg/super_group_notification.go

38 lines
970 B

3 years ago
package msg
import (
"Open_IM/pkg/common/constant"
"Open_IM/pkg/common/log"
3 years ago
//sdk "Open_IM/pkg/proto/sdk_ws"
3 years ago
"Open_IM/pkg/utils"
3 years ago
//"github.com/golang/protobuf/jsonpb"
//"github.com/golang/protobuf/proto"
3 years ago
)
func SuperGroupNotification(operationID, sendID, groupID string) {
3 years ago
//var tips sdk.TipsComm
//var err error
//marshaler := jsonpb.Marshaler{
// OrigName: true,
// EnumsAsInts: false,
// EmitDefaults: false,
//}
//tips.JsonDetail, _ = marshaler.MarshalToString(m)
n := &NotificationMsg{
SendID: sendID,
RecvID: groupID,
MsgFrom: constant.SysMsgType,
3 years ago
ContentType: constant.SuperGroupUpdateNotification,
SessionType: constant.SuperGroupChatType,
3 years ago
OperationID: operationID,
}
//n.Content, err = proto.Marshal(&tips)
//if err != nil {
// log.NewError(operationID, utils.GetSelfFuncName(), "proto.Marshal failed")
// return
//}
log.NewInfo(operationID, utils.GetSelfFuncName(), string(n.Content))
Notification(n)
}