Skip to content

Commit cdd9ce8

Browse files
committed
dto: 补充 embed 缩略图字段
1 parent e807487 commit cdd9ce8

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

dto/message.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,16 @@ type Message struct {
3838

3939
// Embed 结构
4040
type Embed struct {
41-
Title string `json:"title,omitempty"`
42-
Description string `json:"description,omitempty"`
43-
Prompt string `json:"prompt"` // 消息弹窗内容,消息列表摘要
44-
Timestamp Timestamp `json:"timestamp,omitempty"`
45-
Fields []*EmbedField `json:"fields,omitempty"`
41+
Title string `json:"title,omitempty"`
42+
Description string `json:"description,omitempty"`
43+
Prompt string `json:"prompt"` // 消息弹窗内容,消息列表摘要
44+
Thumbnail MessageEmbedThumbnail `json:"thumbnail,omitempty"`
45+
Fields []*EmbedField `json:"fields,omitempty"`
46+
}
47+
48+
// MessageEmbedThumbnail embed 消息的缩略图对象
49+
type MessageEmbedThumbnail struct {
50+
URL string `json:"url"`
4651
}
4752

4853
// EmbedField Embed字段描述

0 commit comments

Comments
 (0)