fix: 更新 ImageMessageData 结构体,添加 omitzero 标签以支持字段的动态属性解析
This commit is contained in:
parent
9e70cb733b
commit
6af17d1227
@ -15,16 +15,16 @@ type ImageMessage struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImageMessageData struct {
|
type ImageMessageData struct {
|
||||||
URL string `json:"url"`
|
URL string `json:"url,omitzero"`
|
||||||
Summary string `json:"summary"`
|
Summary string `json:"summary,omitzero"`
|
||||||
File string `json:"file"`
|
File string `json:"file,omitzero"`
|
||||||
Key string `json:"key"`
|
Key string `json:"key,omitzero"`
|
||||||
EmojiID string `json:"emoji_id"`
|
EmojiID string `json:"emoji_id,omitzero"`
|
||||||
PackageID string `json:"emoji_package_id"`
|
PackageID string `json:"emoji_package_id,omitzero"`
|
||||||
SubType string `json:"sub_type"`
|
SubType string `json:"sub_type,omitzero"`
|
||||||
FileID string `json:"file_id"`
|
FileID string `json:"file_id,omitzero"`
|
||||||
FileSize string `json:"file_size"`
|
FileSize string `json:"file_size,omitzero"`
|
||||||
FileUnique string `json:"file_unique"`
|
FileUnique string `json:"file_unique,omitzero"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user