mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-25 20:52:11 +08:00
chore: msg
This commit is contained in:
parent
398e26b96c
commit
542dfd6759
@ -196,6 +196,29 @@ func (m *msgServer) sendMsgSingleChat(ctx context.Context, req *pbmsg.SendMsgReq
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *msgServer) SendSimpleMsg(ctx context.Context, req *pbmsg.SendMsgReq) (*pbmsg.SendMsgResp, error) {
|
func (m *msgServer) SendSimpleMsg(ctx context.Context, req *pbmsg.SendSimpleMsgReq) (*pbmsg.SendSimpleMsgResp, error) {
|
||||||
|
msgData := &sdkws.MsgData{
|
||||||
|
SendID: req.SendID,
|
||||||
|
RecvID: req.RecvID,
|
||||||
|
GroupID: req.GroupID,
|
||||||
|
ClientMsgID: GetMsgID(req.SendID),
|
||||||
|
ServerMsgID: GetMsgID(req.SendID),
|
||||||
|
SenderPlatformID: constant.AdminPlatformID,
|
||||||
|
SenderNickname: "",
|
||||||
|
SenderFaceURL: "",
|
||||||
|
SessionType: 0,
|
||||||
|
MsgFrom: 0,
|
||||||
|
ContentType: 0,
|
||||||
|
Content: req.Content,
|
||||||
|
Seq: 0,
|
||||||
|
SendTime: 0,
|
||||||
|
CreateTime: 0,
|
||||||
|
Status: 0,
|
||||||
|
IsRead: false,
|
||||||
|
Options: nil,
|
||||||
|
OfflinePushInfo: nil,
|
||||||
|
AtUserIDList: nil,
|
||||||
|
AttachedInfo: "",
|
||||||
|
Ex: "",
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user