Skip to content

Commit

Permalink
增加发送图文消息(点击跳转到图文消息页面)使用通过 “发布” 系列接口得到的 article_id (silenceper#664)
Browse files Browse the repository at this point in the history
Co-authored-by: handson@intonead.com <gyr@3332502!>
  • Loading branch information
handsomegyr and handson@intonead.com authored Apr 3, 2023
1 parent ca0b74e commit 8bc1474
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions officialaccount/message/customer_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type CustomerMessage struct {
Wxcard *MediaWxcard `json:"wxcard,omitempty"` // 可选
Msgmenu *MediaMsgmenu `json:"msgmenu,omitempty"` // 可选
Miniprogrampage *MediaMiniprogrampage `json:"miniprogrampage,omitempty"` // 可选
Mpnewsarticle *MediaArticle `json:"mpnewsarticle,omitempty"` // 可选
}

// NewCustomerTextMessage 文本消息结构体构造方法
Expand Down Expand Up @@ -97,6 +98,11 @@ type MediaResource struct {
MediaID string `json:"media_id"`
}

// MediaArticle 消息使用的已发布文章id
type MediaArticle struct {
ArticleID string `json:"article_id"`
}

// MediaVideo 视频消息包含的内容
type MediaVideo struct {
MediaID string `json:"media_id"`
Expand Down

0 comments on commit 8bc1474

Please sign in to comment.