feat: Sending messages supports returning fields modified by webhook

This commit is contained in:
withchao
2025-03-05 16:52:55 +08:00
parent 13356b6d49
commit 86bdcbcde6
9 changed files with 211 additions and 199 deletions
+12
View File
@@ -15,6 +15,7 @@
package apistruct
import (
pbmsg "github.com/openimsdk/protocol/msg"
"github.com/openimsdk/protocol/sdkws"
)
@@ -139,4 +140,15 @@ type SingleReturnResult struct {
// RecvID uniquely identifies the receiver of the message.
RecvID string `json:"recvID"`
// Modify fields modified via webhook.
Modify map[string]any `json:"modify,omitempty"`
}
type SendMsgResp struct {
// SendMsgResp original response.
*pbmsg.SendMsgResp
// Modify fields modified via webhook.
Modify map[string]any `json:"modify,omitempty"`
}
-1
View File
@@ -1 +0,0 @@
package apistruct