package com.matrix.system.wechart.templateMsg;
|
|
import com.alibaba.fastjson.JSONObject;
|
import com.aliyuncs.utils.HttpsUtils;
|
import org.apache.commons.collections.map.HashedMap;
|
|
import java.util.Map;
|
|
/**
|
* 公众号模板消息对象
|
*/
|
public class GzhTemplateMessagePojo {
|
|
private String appid;
|
private String touser;
|
private String template_id;
|
private String url;
|
private Miniprogram miniprogram;
|
public static class Miniprogram{
|
private String appid;
|
private String pagepath;
|
|
public Miniprogram(String appid, String pagepath) {
|
this.appid = appid;
|
this.pagepath = pagepath;
|
}
|
|
public String getAppid() {
|
return appid;
|
}
|
|
public void setAppid(String appid) {
|
this.appid = appid;
|
}
|
|
public String getPagepath() {
|
return pagepath;
|
}
|
|
public void setPagepath(String pagepath) {
|
this.pagepath = pagepath;
|
}
|
}
|
public Map<String ,Item> data=new HashedMap();
|
public static class Item{
|
private String value;
|
private String color;
|
|
public Item(String value, String color) {
|
this.value = value;
|
this.color = color;
|
}
|
|
public String getValue() {
|
return value;
|
}
|
|
public void setValue(String value) {
|
this.value = value;
|
}
|
|
public String getColor() {
|
return color;
|
}
|
|
public void setColor(String color) {
|
this.color = color;
|
}
|
}
|
|
|
public String getAppid() {
|
return appid;
|
}
|
|
public void setAppid(String appid) {
|
this.appid = appid;
|
}
|
|
public void setMiniprogram(String appid, String url){
|
this.setMiniprogram(new Miniprogram(appid,url));
|
}
|
public void setFirst(String value, String color){
|
this.data.put("first",new Item(value,color));
|
}
|
|
public void setKeyWord(String value, String color){
|
this.data.put("keyword"+(this.data.size()),new Item(value,color));
|
}
|
public void setRemark(String value, String color){
|
this.data.put("remark",new Item(value,color));
|
}
|
|
public Miniprogram getMiniprogram() {
|
return miniprogram;
|
}
|
|
public void setMiniprogram(Miniprogram miniprogram) {
|
this.miniprogram = miniprogram;
|
}
|
|
public Map<String, Item> getData() {
|
return data;
|
}
|
|
public void setData(Map<String, Item> data) {
|
this.data = data;
|
}
|
|
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 String getUrl() {
|
return url;
|
}
|
|
public void setUrl(String url) {
|
this.url = url;
|
}
|
|
}
|