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

Signed-off-by: soasurs <soasurs@gmail.com>
This commit is contained in:
soasurs 2023-03-20 15:27:43 +08:00 committed by GitHub
parent 0bd2c00088
commit b67c244bbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

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

View File

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