From 8bc1474777822d1cbde0d0350438e236eb4c26b5 Mon Sep 17 00:00:00 2001 From: Guo yongrong Date: Mon, 3 Apr 2023 18:13:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=91=E9=80=81=E5=9B=BE?= =?UTF-8?q?=E6=96=87=E6=B6=88=E6=81=AF=EF=BC=88=E7=82=B9=E5=87=BB=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=88=B0=E5=9B=BE=E6=96=87=E6=B6=88=E6=81=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=EF=BC=89=E4=BD=BF=E7=94=A8=E9=80=9A=E8=BF=87=20?= =?UTF-8?q?=E2=80=9C=E5=8F=91=E5=B8=83=E2=80=9D=20=E7=B3=BB=E5=88=97?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=BE=97=E5=88=B0=E7=9A=84=20article=5Fid=20?= =?UTF-8?q?(#664)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: handson@intonead.com --- officialaccount/message/customer_message.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/officialaccount/message/customer_message.go b/officialaccount/message/customer_message.go index 67acc8a..6742a61 100644 --- a/officialaccount/message/customer_message.go +++ b/officialaccount/message/customer_message.go @@ -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 文本消息结构体构造方法 @@ -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"`