| | |
| | | package com.hz.sms.dto; |
| | | |
| | | import com.hz.sms.dto.entity.Miniprogram; |
| | | import lombok.Data; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 参数用于下发小程序和公众号统一的服务消息 (参数实体),子模块 |
| | | */ |
| | | @Data |
| | | public class MpTemplateMsg { |
| | | //公众号appid,要求与小程序有绑定且同主体 |
| | | private String appid; |
| | | //公众号模板id |
| | | private String template_id; |
| | | //公众号模板消息所要跳转的url |
| | | /**公众号appid,要求与小程序有绑定且同主体 - Y*/ |
| | | private String appId; |
| | | /**公众号模板id - Y*/ |
| | | private String templateId; |
| | | /**公众号模板消息所要跳转的url - N*/ |
| | | private String url; |
| | | //公众号模板消息所要跳转的小程序,小程序的必须与公众号具有绑定关系 |
| | | private String miniprogram; |
| | | //公众号模板消息的数据 |
| | | private String data; |
| | | /**公众号模板消息所要跳转的小程序,小程序的必须与公众号具有绑定关系 - N*/ |
| | | private Miniprogram minIProgram; |
| | | /**公众号模板消息的数据 - Y*/ |
| | | private Map<String, Keyword> data; |
| | | |
| | | public String getAppid() { |
| | | return appid; |
| | | } |
| | | |
| | | public void setAppid(String appid) { |
| | | this.appid = appid; |
| | | } |
| | | |
| | | 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; |
| | | } |
| | | |
| | | public String getMiniprogram() { |
| | | return miniprogram; |
| | | } |
| | | |
| | | public void setMiniprogram(String miniprogram) { |
| | | this.miniprogram = miniprogram; |
| | | } |
| | | |
| | | public String getData() { |
| | | return data; |
| | | } |
| | | |
| | | public void setData(String data) { |
| | | this.data = data; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "MpTemplateMsg{" + |
| | | "appid='" + appid + '\'' + |
| | | ", template_id='" + template_id + '\'' + |
| | | ", url='" + url + '\'' + |
| | | ", miniprogram='" + miniprogram + '\'' + |
| | | ", data='" + data + '\'' + |
| | | '}'; |
| | | } |
| | | } |