From 96e7945d200f4630de690639f0c50320b6b040b7 Mon Sep 17 00:00:00 2001 From: hb Date: Thu, 17 Mar 2022 17:52:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1=E5=86=85?= =?UTF-8?q?=E9=83=A8=E5=BC=80=E5=8F=91API=EF=BC=9A=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E3=80=8B=E6=8E=A5=E6=94=B6=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E4=B8=8E=E4=BA=8B=E4=BB=B6=E3=80=8B=E4=BA=8B=E4=BB=B6=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E3=80=8B=E6=A8=A1=E6=9D=BF=E5=8D=A1=E7=89=87=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- work/message/message.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/work/message/message.go b/work/message/message.go index e0b8ffd..bcf3434 100644 --- a/work/message/message.go +++ b/work/message/message.go @@ -173,6 +173,19 @@ type MixMessage struct { Event EventType `xml:"Event"` EventKey string `xml:"EventKey"` + //模板卡片事件推送 https://developer.work.weixin.qq.com/document/path/90240#%E6%A8%A1%E6%9D%BF%E5%8D%A1%E7%89%87%E4%BA%8B%E4%BB%B6%E6%8E%A8%E9%80%81 + TaskId string `xml:"TaskId"` //与发送模板卡片消息时指定的task_id相同 + CardType string `xml:"CardType"` //通用模板卡片的类型,类型有"text_notice", "news_notice", "button_interaction", "vote_interaction", "multiple_interaction"五种 + ResponseCode string `xml:"ResponseCode"` //用于调用更新卡片接口的ResponseCode,24小时内有效,且只能使用一次 + SelectedItems struct { + SelectedItem struct { + QuestionKey string `xml:"QuestionKey"` //问题的key值 + OptionIds struct { //对应问题的选项列表 + OptionId string `xml:"OptionId"` + } `xml:"OptionIds"` + } `xml:"SelectedItem"` + } `xml:"SelectedItems"` + //仅上报地理位置事件 Latitude string `xml:"Latitude"` //地理位置纬度 Longitude string `xml:"Longitude"` //地理位置经度