|
@@ -233,13 +233,20 @@ type WxTokenResp struct {
|
|
|
AccessToken string `description:"微信token"`
|
|
|
}
|
|
|
|
|
|
+// 跳小程序所需数据
|
|
|
+type MiniprogramReq struct {
|
|
|
+ Appid string `json:"appid" ;description:"所需跳转到的小程序appid(该小程序appid必须与发模板消息的公众号是绑定关联关系,暂不支持小游戏`
|
|
|
+ Pagepath string `json:"pagepath" ;description:"所需跳转到小程序的具体页面路径,支持带参数,(示例index?foo=bar),要求该小程序已发布,暂不支持小游戏`
|
|
|
+}
|
|
|
+
|
|
|
type SendWxCategoryTemplate struct {
|
|
|
- WxAppId string `description:"公众号appId"`
|
|
|
- Keywords []string `description:"模板消息keyword字段"`
|
|
|
- TemplateId string `description:"模板id"`
|
|
|
- RedirectUrl string `description:"跳转地址"`
|
|
|
- RedirectTarget int `description:"小程序跳转目标:1:弘则研报小程序,2:随手办公小程序,3:查研观向"`
|
|
|
- Resource string `description:"资源唯一标识"`
|
|
|
- SendType int `description:"发送的消息类型:1:报告,2:指标更新提醒,3:审批通知,4:销售领取客户通知,5:活动取消通知,6活动更改时间通知,7:关注的作者发布报告通知,8:发送日报(周报、双周报、月报)模板消息,9:活动预约/报名时间通知"`
|
|
|
- OpenIdArr []string `description:"消息接收者openid"`
|
|
|
+ WxAppId string `description:"公众号appId"`
|
|
|
+ Keywords []string `description:"模板消息keyword字段"`
|
|
|
+ TemplateId string `description:"模板id"`
|
|
|
+ Miniprogram *MiniprogramReq `description:"跳小程序所需数据,不需跳小程序可不用传该数据"`
|
|
|
+ RedirectUrl string `description:"跳转地址"`
|
|
|
+ RedirectTarget int `description:"小程序跳转目标:1:弘则研报小程序,2:随手办公小程序,3:查研观向"`
|
|
|
+ Resource string `description:"资源唯一标识"`
|
|
|
+ SendType int `description:"发送的消息类型:1:报告,2:指标更新提醒,3:审批通知,4:销售领取客户通知,5:活动取消通知,6活动更改时间通知,7:关注的作者发布报告通知,8:发送日报(周报、双周报、月报)模板消息,9:活动预约/报名时间通知"`
|
|
|
+ OpenIdArr []string `description:"消息接收者openid"`
|
|
|
}
|