mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-10 12:05:58 +08:00
feat: Sending messages supports returning fields modified by webhook
This commit is contained in:
@@ -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 +0,0 @@
|
||||
package apistruct
|
||||
Reference in New Issue
Block a user