All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zopen.wechat.mp.dto.miniprogram.MiniProgramTemplateMessage Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package com.zopen.wechat.mp.dto.miniprogram;

import java.util.Map;

public class MiniProgramTemplateMessage {

    // * 接收者openid
    private String touser;

    // * 模板ID
    private String template_id;

    // 点击模板卡片后的跳转页面,仅限本小程序内的页面。支持带参数,(示例index?foo=bar)。该字段不填则模板无跳转。
    private String page;

    // * 表单提交场景下,为 submit 事件带上的 formId;支付场景下,为本次支付的 prepay_id
    private String form_id;

    // 模板内容,不填则下发空模板。具体格式请参考示例。
    private Map data;

    // 模板需要放大的关键词,不填则默认无放大
    private String emphasis_keyword;

    public MiniProgramTemplateMessage() {
    }

    public MiniProgramTemplateMessage(String touser, String template_id, String page, String form_id, Map data, String emphasis_keyword) {
        this.touser = touser;
        this.template_id = template_id;
        this.page = page;
        this.form_id = form_id;
        this.data = data;
        this.emphasis_keyword = emphasis_keyword;
    }

    public String getTouser() {
        return this.touser;
    }

    public void setTouser(String touser) {
        this.touser = touser;
    }

    public String getTemplate_id() {
        return this.template_id;
    }

    public void setTemplate_id(String template_id) {
        this.template_id = template_id;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getForm_id() {
        return form_id;
    }

    public void setForm_id(String form_id) {
        this.form_id = form_id;
    }

    public String getEmphasis_keyword() {
        return emphasis_keyword;
    }

    public void setEmphasis_keyword(String emphasis_keyword) {
        this.emphasis_keyword = emphasis_keyword;
    }

    public Map getData() {
        return data;
    }

    public void setData(Map data) {
        this.data = data;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy