From 28dee5fee83a9c57da11d4ac0d1e0452721d27a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Wed, 12 Jan 2022 09:08:14 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E4=BD=93=E3=80=81=E8=A1=A5=E5=85=85=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/response.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/common/response.go b/common/response.go index 3eea299..33a96e9 100644 --- a/common/response.go +++ b/common/response.go @@ -4,8 +4,9 @@ import "gitee.ltd/lxh/txim/callback" // ToTxMessageResponse 返回给腾讯的应答数据 - 是否允许发送当前消息 type ToTxMessageResponse struct { - ActionStatus string `json:"ActionStatus"` - ErrorInfo string `json:"ErrorInfo"` - ErrorCode int `json:"ErrorCode"` - MsgBody []callback.TIMMessage `json:"MsgBody,omitempty"` + ActionStatus string `json:"ActionStatus"` // 请求处理的结果,OK 表示处理成功,FAIL 表示失败 + ErrorInfo string `json:"ErrorInfo"` // 错误码,0为允许发言;1为拒绝发言。若业务希望拒绝发言的同时,将错误码 ErrorCode 和 ErrorInfo 传递至客户端,请将错误码 ErrorCode 设置在 [120001, 130000] 区间内 + ErrorCode int `json:"ErrorCode"` // 错误信息 + MsgBody []callback.TIMMessage `json:"MsgBody,omitempty"` // 经过 App 修改之后的消息体,即时通信 IM 后台将把修改后的消息发送给接收方 + CloudCustomData string `json:"CloudCustomData,omitempty"` // 自定义数据 }