| | |
| | | */ |
| | | 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; |
| | | private String path; |
| | | |
| | | public Miniprogram(String appid, String pagepath) { |
| | | public Miniprogram(String appid, String path) { |
| | | this.appid = appid; |
| | | this.pagepath = pagepath; |
| | | this.path = path; |
| | | } |
| | | |
| | | public String getPath() { |
| | | return path; |
| | | } |
| | | |
| | | public void setPath(String path) { |
| | | this.path = path; |
| | | } |
| | | |
| | | public String getAppid() { |
| | |
| | | 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{ |
| | |
| | | } |
| | | |
| | | |
| | | public String getAppid() { |
| | | return appid; |
| | | } |
| | | |
| | | public void setAppid(String appid) { |
| | | this.appid = appid; |
| | | } |
| | | |
| | | |
| | | |
| | | public void setMiniprogram(String appid,String url){ |
| | | public void setMiniprogram(String appid, String url){ |
| | | this.setMiniprogram(new Miniprogram(appid,url)); |
| | | } |
| | | public void setFirst(String value, String 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; |