feat: add recvID/groupID for msg modification callback (#351)

Signed-off-by: soasurs <soasurs@gmail.com>
pull/354/head
soasurs 3 years ago committed by GitHub
parent 0bd2c00088
commit b67c244bbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -147,6 +147,8 @@ func callbackMsgModify(msg *pbChat.SendMsgReq) cbApi.CommonCallbackResp {
commonCallbackReq.CallbackCommand = constant.CallbackMsgModifyCommand commonCallbackReq.CallbackCommand = constant.CallbackMsgModifyCommand
req := cbApi.CallbackMsgModifyCommandReq{ req := cbApi.CallbackMsgModifyCommandReq{
CommonCallbackReq: commonCallbackReq, CommonCallbackReq: commonCallbackReq,
GroupID: msg.MsgData.GroupID,
RecvID: msg.MsgData.RecvID,
} }
resp := &cbApi.CallbackMsgModifyCommandResp{CommonCallbackResp: &callbackResp} resp := &cbApi.CallbackMsgModifyCommandResp{CommonCallbackResp: &callbackResp}
defer log.NewDebug(msg.OperationID, utils.GetSelfFuncName(), req, *resp) defer log.NewDebug(msg.OperationID, utils.GetSelfFuncName(), req, *resp)

@ -51,6 +51,8 @@ type CallbackAfterConsumeGroupMsgResp struct {
} }
type CallbackMsgModifyCommandReq struct { type CallbackMsgModifyCommandReq struct {
CommonCallbackReq CommonCallbackReq
RecvID string `json:"recvID,omitempty"`
GroupID string `json:"groupID,omitempty"`
} }
type CallbackMsgModifyCommandResp struct { type CallbackMsgModifyCommandResp struct {

Loading…
Cancel
Save