From 01784c2a4a7daac4b429dba710ad3d2075f021fa Mon Sep 17 00:00:00 2001 From: Ace Date: Mon, 3 Apr 2023 20:31:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E4=BA=92=E9=80=9A?= =?UTF-8?q?=E7=BA=A2=E5=8C=85=E5=92=8C=E8=A7=86=E9=A2=91=E5=8F=B7=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E9=83=A8=E5=88=86=E5=AD=97=E6=AE=B5=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B=E5=A3=B0=E6=98=8E?= =?UTF-8?q?=20(#663)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix:修复消息存档内红包祝福语和视频号部分字段数据类型声明错误的问题 * docs:更新注释说明 * fix:校正互通红包内的数据结构声明类型 --- work/msgaudit/message.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/work/msgaudit/message.go b/work/msgaudit/message.go index 91202de..0b4a334 100644 --- a/work/msgaudit/message.go +++ b/work/msgaudit/message.go @@ -150,7 +150,7 @@ type TodoMessage struct { BaseMessage Todo struct { Title string `json:"title,omitempty"` // 代办的来源文本 - Content string `json:"content,omitempty"` // 代办的具体内容 + Content string `json:"content,omitempty"` // 代办的具体内容 } `json:"todo,omitempty"` } @@ -266,10 +266,10 @@ type VoipDocShareMessage struct { type ExternalRedPacketMessage struct { BaseMessage RedPacket struct { - Type int32 `json:"type,omitempty"` // 红包消息类型。1 普通红包、2 拼手气群红包。Uint32类型 - Wish int32 `json:"wish,omitempty"` // 红包祝福语。String类型 - TotalCnt int32 `json:"totalcnt,omitempty"` // 红包总个数。Uint32类型 - TotalAmount int32 `json:"totalamount,omitempty"` // 红包消息类型。1 普通红包、2 拼手气群红包。Uint32类型 + Type uint32 `json:"type,omitempty"` // 红包消息类型。1 普通红包、2 拼手气群红包。Uint32类型 + Wish string `json:"wish,omitempty"` // 红包祝福语。String类型 + TotalCnt uint32 `json:"totalcnt,omitempty"` // 红包总个数。Uint32类型 + TotalAmount uint32 `json:"totalamount,omitempty"` // 红包总金额。Uint32类型,单位为分。 } `json:"redpacket,omitempty"` } @@ -277,9 +277,9 @@ type ExternalRedPacketMessage struct { type SphFeedMessage struct { BaseMessage SphFeed struct { - FeedType string `json:"feed_type,omitempty"` // 视频号消息类型 - SphName string `json:"sph_name,omitempty"` // 视频号账号名称 - FeedDesc uint64 `json:"feed_desc,omitempty"` // 视频号账号名称 + FeedType uint32 `json:"feed_type,omitempty"` // 视频号消息类型。2 图片、4 视频、9 直播。Uint32类型 + SphName string `json:"sph_name,omitempty"` // 视频号账号名称。String类型 + FeedDesc string `json:"feed_desc,omitempty"` // 视频号消息描述。String类型 } }