txim/callback/response.go

11 lines
889 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package callback
// ToTxMessageResponse 返回给腾讯的应答数据 - 是否允许发送当前消息
type ToTxMessageResponse struct {
ActionStatus string `json:"ActionStatus"` // 请求处理的结果OK 表示处理成功FAIL 表示失败
ErrorInfo string `json:"ErrorInfo"` // 错误码0为允许发言1为拒绝发言。若业务希望拒绝发言的同时将错误码 ErrorCode 和 ErrorInfo 传递至客户端,请将错误码 ErrorCode 设置在 [120001, 130000] 区间内
ErrorCode int `json:"ErrorCode"` // 错误信息
MsgBody []TIMMessage `json:"MsgBody,omitempty"` // 经过 App 修改之后的消息体,即时通信 IM 后台将把修改后的消息发送给接收方
CloudCustomData string `json:"CloudCustomData,omitempty"` // 自定义数据
}