Skip to content

Commit 6c78c48

Browse files
author
casonli
committed
sdk:增加原生 markdown 参数 (merge request !40)
Squash merge branch 'feature_20220321_casonli_markdown_story_872529371' into 'master' 增加原生 markdown 参数
1 parent 2dd3fff commit 6c78c48

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dto/message_create.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ type MessageReference struct {
2020

2121
// Markdown markdown 消息
2222
type Markdown struct {
23-
TemplateID int `json:"template_id"`
24-
Params []*MarkdownParams `json:"params"`
23+
TemplateID int `json:"template_id"` // 模版 id
24+
Params []*MarkdownParams `json:"params"` // 模版参数
25+
Content string `json:"content"` // 原生 markdown
2526
}
2627

2728
// MarkdownParams markdown 模版参数 键值对

0 commit comments

Comments
 (0)