From e3ccb13fdd386d41ea2f721924861f6bb64e6708 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Sat, 09 Jan 2021 14:46:09 +0800 Subject: [PATCH] Merge branch 'api' of https://gitee.com/jyyforjava/zq-erp into api --- zq-erp/src/main/java/com/matrix/system/wechart/templateMsg/GzhTemplateMessagePojo.java | 134 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 134 insertions(+), 0 deletions(-) diff --git a/zq-erp/src/main/java/com/matrix/system/wechart/templateMsg/GzhTemplateMessagePojo.java b/zq-erp/src/main/java/com/matrix/system/wechart/templateMsg/GzhTemplateMessagePojo.java new file mode 100644 index 0000000..d6c6517 --- /dev/null +++ b/zq-erp/src/main/java/com/matrix/system/wechart/templateMsg/GzhTemplateMessagePojo.java @@ -0,0 +1,134 @@ +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; + } + +} -- Gitblit v1.9.1