|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public class GzhTemplateMessagePojo { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private  String appid; | 
|---|
|  |  |  | private  String touser; | 
|---|
|  |  |  | private  String template_id; | 
|---|
|  |  |  | private  String url; | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static void main(String[] args) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | GzhTemplateMessagePojo messagePojo=new GzhTemplateMessagePojo(); | 
|---|
|  |  |  | messagePojo.setTouser("123"); | 
|---|
|  |  |  | messagePojo.setTemplate_id("543"); | 
|---|
|  |  |  | messagePojo.setUrl("231"); | 
|---|
|  |  |  | messagePojo.setMiniprogram("65475234","/123/234123412"); | 
|---|
|  |  |  | messagePojo.setFirst("1231","#453454"); | 
|---|
|  |  |  | messagePojo.setKeyWord("1231","#453454"); | 
|---|
|  |  |  | System.out.println(JSONObject.toJSON(messagePojo).toString()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getAppid() { | 
|---|
|  |  |  | return appid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setMiniprogram(String appid,String url){ | 
|---|
|  |  |  | 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){ | 
|---|
|  |  |  | 
|---|
|  |  |  | 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; | 
|---|