mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-04 12:52:27 +08:00
fix:修复互通红包和视频号消息部分字段错误的数据类型声明 (#663)
* fix:修复消息存档内红包祝福语和视频号部分字段数据类型声明错误的问题 * docs:更新注释说明 * fix:校正互通红包内的数据结构声明类型
This commit is contained in:
@@ -150,7 +150,7 @@ type TodoMessage struct {
|
|||||||
BaseMessage
|
BaseMessage
|
||||||
Todo struct {
|
Todo struct {
|
||||||
Title string `json:"title,omitempty"` // 代办的来源文本
|
Title string `json:"title,omitempty"` // 代办的来源文本
|
||||||
Content string `json:"content,omitempty"` // 代办的具体内容
|
Content string `json:"content,omitempty"` // 代办的具体内容
|
||||||
} `json:"todo,omitempty"`
|
} `json:"todo,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -266,10 +266,10 @@ type VoipDocShareMessage struct {
|
|||||||
type ExternalRedPacketMessage struct {
|
type ExternalRedPacketMessage struct {
|
||||||
BaseMessage
|
BaseMessage
|
||||||
RedPacket struct {
|
RedPacket struct {
|
||||||
Type int32 `json:"type,omitempty"` // 红包消息类型。1 普通红包、2 拼手气群红包。Uint32类型
|
Type uint32 `json:"type,omitempty"` // 红包消息类型。1 普通红包、2 拼手气群红包。Uint32类型
|
||||||
Wish int32 `json:"wish,omitempty"` // 红包祝福语。String类型
|
Wish string `json:"wish,omitempty"` // 红包祝福语。String类型
|
||||||
TotalCnt int32 `json:"totalcnt,omitempty"` // 红包总个数。Uint32类型
|
TotalCnt uint32 `json:"totalcnt,omitempty"` // 红包总个数。Uint32类型
|
||||||
TotalAmount int32 `json:"totalamount,omitempty"` // 红包消息类型。1 普通红包、2 拼手气群红包。Uint32类型
|
TotalAmount uint32 `json:"totalamount,omitempty"` // 红包总金额。Uint32类型,单位为分。
|
||||||
} `json:"redpacket,omitempty"`
|
} `json:"redpacket,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -277,9 +277,9 @@ type ExternalRedPacketMessage struct {
|
|||||||
type SphFeedMessage struct {
|
type SphFeedMessage struct {
|
||||||
BaseMessage
|
BaseMessage
|
||||||
SphFeed struct {
|
SphFeed struct {
|
||||||
FeedType string `json:"feed_type,omitempty"` // 视频号消息类型
|
FeedType uint32 `json:"feed_type,omitempty"` // 视频号消息类型。2 图片、4 视频、9 直播。Uint32类型
|
||||||
SphName string `json:"sph_name,omitempty"` // 视频号账号名称
|
SphName string `json:"sph_name,omitempty"` // 视频号账号名称。String类型
|
||||||
FeedDesc uint64 `json:"feed_desc,omitempty"` // 视频号账号名称
|
FeedDesc string `json:"feed_desc,omitempty"` // 视频号消息描述。String类型
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user