From 542dfd6759023d07c7173ccc2ad896998b2133d4 Mon Sep 17 00:00:00 2001 From: icey-yu <1186114839@qq.com> Date: Mon, 17 Feb 2025 15:39:08 +0800 Subject: [PATCH] chore: msg --- internal/rpc/msg/send.go | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/internal/rpc/msg/send.go b/internal/rpc/msg/send.go index ae5038a50..47d9b15bd 100644 --- a/internal/rpc/msg/send.go +++ b/internal/rpc/msg/send.go @@ -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: "", + } }