WxSendSmsDataReq.java 3.83 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
package com.yanzuoguang.wxxcx.cloudbase.sendSms;

import java.util.List;

/***
 * 发送支持打开云开发静态网站的短信,该 H5 可以打开小程序
 *
 * @author:heyanou
 */
public class WxSendSmsDataReq {

    /**
     * <p>
     *     是否必填:是
     *     描述:接口调用凭证
     * </p>
     */
    private String  access_token;
    /**
     * <p>
     *     是否必填:是
     *     描述:环境 ID
     * </p>
     */
    private String  env;
    /**
     * <p>
     *     是否必填:是
     *     描述:手机号列表,单次请求最多支持 1000 个境内手机号,手机号必须以+86开头
     * </p>
     */
    private List<String>  phone_number_list;
    /**
     * <p>
     *     是否必填:是
     *     描述:短信类型,营销类短信:Marketing;通知类短信:Notification
     * </p>
     */
    private String  sms_type="Marketing";
    /**
     * <p>
     *     是否必填:是
     *     描述:sms_type="Marketing" 时必填,自定义短信内容,一条短信最多为70个字。可自定义内容最多为 30 个字符,详情参考短信规则
     * </p>
     */
    private String   content;
    /**
     * <p>
     *     是否必填:是
     *     描述:sms_type="Marketing" 时必填,云开发静态网站 path,不需要指定域名,例如/index.html
     * </p>
     */
    private String  path;
    /**
     * <p>
     *     是否必填:是
     *     描述:sms_type="Notification" 时必填,模版 ID
     * </p>
     */
    private String  template_id;
    /**
     * <p>
     *     是否必填:是
     *     描述:生成这个随机字符串的 UNIX 时间戳(精确到秒)
     * </p>
     */
    private List<String> template_param_list;
    /**
     * <p>
     *     是否必填:否
     *     描述:是否使用小程序简称
     * </p>
     */
    private Boolean  use_short_name;
    /**
     * <p>
     *     是否必填:v
     *     描述:资源方appid,第三方代开发时可填第三方 appid 或小程序appid,应为所填环境所属的账号APPID
     * </p>
     */
    private String  resource_appid;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public List<String> getPhone_number_list() {
        return phone_number_list;
    }

    public void setPhone_number_list(List<String> phone_number_list) {
        this.phone_number_list = phone_number_list;
    }

    public String getSms_type() {
        return sms_type;
    }

    public void setSms_type(String sms_type) {
        this.sms_type = sms_type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getTemplate_id() {
        return template_id;
    }

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

    public List<String> getTemplate_param_list() {
        return template_param_list;
    }

    public void setTemplate_param_list(List<String> template_param_list) {
        this.template_param_list = template_param_list;
    }

    public Boolean getUse_short_name() {
        return use_short_name;
    }

    public void setUse_short_name(Boolean use_short_name) {
        this.use_short_name = use_short_name;
    }

    public String getResource_appid() {
        return resource_appid;
    }

    public void setResource_appid(String resource_appid) {
        this.resource_appid = resource_appid;
    }
}