|
@@ -0,0 +1,67 @@
|
|
|
+package com.hssx.cloudmodel.util;
|
|
|
+
|
|
|
+public class WechatTemplateMessage {
|
|
|
+ private String appid; //所需跳转到的小程序appid(该小程序appid必须与发模板消息的公众号是绑定关联关系,暂不支持小游戏)
|
|
|
+ private String access_token;
|
|
|
+ private String touser;//接收者openid
|
|
|
+ private String template_id;//模板id
|
|
|
+ private Object data;//模板数据
|
|
|
+ private String miniprogram; //跳小程序所需数据,不需跳小程序可不用传该数据,非必传
|
|
|
+ private String pagepath; //所需跳转到小程序的具体页面路径,支持带参数,(示例index?foo=bar),要求该小程序已发布,暂不支持小游戏
|
|
|
+ private String url;//模板跳转链接(海外帐号没有跳转能力)
|
|
|
+ public String getAccess_token() {
|
|
|
+ return access_token;
|
|
|
+ }
|
|
|
+ public void setAccess_token(String access_token) {
|
|
|
+ this.access_token = access_token;
|
|
|
+ }
|
|
|
+ public String getTouser() {
|
|
|
+ return touser;
|
|
|
+ }
|
|
|
+ public void setTouser(String touser) {
|
|
|
+ this.touser = touser;
|
|
|
+ }
|
|
|
+ public String getTemplate_id() {
|
|
|
+ return template_id;
|
|
|
+ }
|
|
|
+ public void setTemplate_id(String template_id) {
|
|
|
+ this.template_id = template_id;
|
|
|
+ }
|
|
|
+ public Object getData() {
|
|
|
+ return data;
|
|
|
+ }
|
|
|
+ public void setData(Object data) {
|
|
|
+ this.data = data;
|
|
|
+ }
|
|
|
+ public String getMiniprogram() {
|
|
|
+ return miniprogram;
|
|
|
+ }
|
|
|
+ public void setMiniprogram(String miniprogram) {
|
|
|
+ this.miniprogram = miniprogram;
|
|
|
+ }
|
|
|
+ public String getPagepath() {
|
|
|
+ return pagepath;
|
|
|
+ }
|
|
|
+ public void setPagepath(String pagepath) {
|
|
|
+ this.pagepath = pagepath;
|
|
|
+ }
|
|
|
+ public String getUrl() {
|
|
|
+ return url;
|
|
|
+ }
|
|
|
+ public void setUrl(String url) {
|
|
|
+ this.url = url;
|
|
|
+ }
|
|
|
+ public String getAppid() {
|
|
|
+ return appid;
|
|
|
+ }
|
|
|
+ public void setAppid(String appid) {
|
|
|
+ this.appid = appid;
|
|
|
+ }
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ return "WechatTemplateMessage [appid=" + appid + ", access_token=" + access_token + ", touser=" + touser
|
|
|
+ + ", template_id=" + template_id + ", data=" + data + ", miniprogram=" + miniprogram + ", pagepath="
|
|
|
+ + pagepath + ", url=" + url + "]";
|
|
|
+ }
|
|
|
+
|
|
|
+}
|