This commit is contained in:
ran.shang
2025-06-11 09:42:13 +08:00
commit 7e38b8d971
1935 changed files with 132836 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* 短信签名
*
* @author Rey(leijiaping@newyetai.com) {@link undefined}
*/
public class AddSmsSign implements Serializable {
/**
*
*/
private static final long serialVersionUID = -5401737524288272902L;
/**
* 是否必填:是<br>
* 事例:阿里云<br>
* 描述:签名名称。 **说明**
* 签名必须符合[个人用户签名规范](https://help.aliyun.com/document_detail/108076.html)或[企业用户签名规范](https://help.aliyun.com/document_detail/108254.html)。<br>
*/
@JsonProperty("SignName")
private String signName;
/**
* 是否必填:是<br>
* 事例:1<br>
* 描述:签名来源。其中: - 0:企事业单位的全称或简称。 - 1:工信部备案网站的全称或简称。 - 2:APP 应用的全称或简称。 - 3:公众号或小程序的全称或简称。 -
* 4:电商平台店铺名的全称或简称。 - 5:商标名的全称或简称 说明** 签名来源为 1 时,请在申请说明中添加网站域名,加快审核速度。<br>
*/
@JsonProperty("SignSource")
private Integer signSource;
/**
* 是否必填:是<br>
* 事例:当前的短信签名应用于双 11 大促推广营销<br>
* 描述:短信签名申请说明。请在申请说明中详细描述您的业务使用场景,申请工信部备案网站的全称或简称请在此处填写域名,长度不超过 200 个字符。<br>
*/
@JsonProperty("Remark")
private String remark;
/**
* 是否必填:否<br>
* 事例:jpg<br>
* 描述:签名的证明文件格式,支持上传多张图片。当前支持 jpg、png、gif 或 jpeg
* 格式的图片。个别场景下,申请签名需要上传证明文件。详细说明请参考[个人用户签名规范](https://help.aliyun.com/document_detail/108076.html)和[企业用户签名规范](https://help.aliyun.com/document_detail/108254.html)。<br>
*/
@JsonProperty("SignFileList.N.FileSuffix")
private String fileSuffix;
/**
* 是否必填:否<br>
* 事例:R0lGODlhHAAmAKIHAKqqqsvLy0hISObm5vf394uLiwAA<br>
* 描述:签名的资质证明文件经 base64 编码后的字符串。图片不超过 2
* MB。个别场景下,申请签名需要上传证明文件。详细说明请参考[个人用户签名规范](https://help.aliyun.com/document_detail/108076.html)和[企业用户签名规范](https://help.aliyun.com/document_detail/108254.html)。<br>
*/
@JsonProperty("SignFileList.N.FileContents")
private String fileContents;
}

View File

@@ -0,0 +1,46 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* 短信签名
*
* @author Rey(leijiaping@newyetai.com)
*/
public class AddSmsSignResponse implements Serializable {
/**
*
*/
private static final long serialVersionUID = 4121769016752821993L;
/**
* 事例:阿里云<br>
* 描述:签名名称。<br>
*/
@JsonProperty("SignName")
private String signName;
/**
* 事例:OK<br>
* 描述:状态码的描述。<br>
*/
@JsonProperty("Message")
private String message;
/**
* 事例:F655A8D5-B967-440B-8683-DAD6FF8DE990<br>
* 描述:请求 ID。<br>
*/
@JsonProperty("RequestId")
private String requestId;
/**
* 事例:OK<br>
* 描述:请求状态码。 - 返回 OK 代表请求成功。 -
* 其他错误码详见[错误码列表](https://help.aliyun.com/document_detail/101346.html)。<br>
*/
@JsonProperty("Code")
private String code;
}

View File

@@ -0,0 +1,51 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* 短信模板
*
* @author Rey(leijiaping@newyetai.com)
*/
public class AddSmsTemplate implements Serializable {
/**
*
*/
private static final long serialVersionUID = 5868722985393802890L;
/**
* 是否必填:是<br>
* 事例:1<br>
* 描述:短信类型。其中: - 0:验证码。 - 1:短信通知。 - 2:推广短信。 - 3:国际 / 港澳台消息。<br>
*/
@JsonProperty("TemplateType")
private Integer templateType;
/**
* 是否必填:是<br>
* 事例:阿里云短信测试模板<br>
* 描述:模板名称,长度为 1~30 个字符。<br>
*/
@JsonProperty("TemplateName")
private String templateName;
/**
* 是否必填:是<br>
* 事例:您正在申请手机注册,验证码为:${code},5 分钟内有效!<br>
* 描述:模板内容,长度为 1~500
* 个字符。模板内容需要符合[文本短信模板规范](https://help.aliyun.com/document_detail/108253.html)或[国际 /
* 港澳台短信模板规范](https://help.aliyun.com/document_detail/108254.html)。<br>
*/
@JsonProperty("TemplateContent")
private String templateContent;
/**
* 是否必填:是<br>
* 事例:当前的短信模板应用于双 11 大促推广营销<br>
* 描述:短信模板申请说明。请在申请说明中描述您的业务使用场景,长度为 1~100 个字符。<br>
*/
@JsonProperty("Remark")
private String remark;
}

View File

@@ -0,0 +1,25 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* 短信签名
*
* @author Rey(leijiaping@newyetai.com) {@link undefined}
*/
public class DeleteSmsSign implements Serializable {
/**
*
*/
private static final long serialVersionUID = -6841147861661592533L;
/**
* 是否必填:是<br>
* 事例:阿里云<br>
* 描述:短信签名。 **说明** 必须是本账号已申请的短信签名。<br>
*/
@JsonProperty("SignName")
private String signName;
}

View File

@@ -0,0 +1,47 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* 短信签名
*
* @author Rey(leijiaping@newyetai.com)
*
*/
public class DeleteSmsSignResponse implements Serializable {
/**
*
*/
private static final long serialVersionUID = 8836559705606969786L;
/**
* 事例:OK<br>
* 描述:请求状态码。 - 返回 OK 代表请求成功。 -
* 其他错误码详见[错误码列表](https://help.aliyun.com/document_detail/101346.html)。<br>
*/
@JsonProperty("Code")
private String code;
/**
* 事例:OK<br>
* 描述:状态码的描述。<br>
*/
@JsonProperty("Message")
private String message;
/**
* 事例:F655A8D5-B967-440B-8683-DAD6FF8DE990<br>
* 描述:请求 ID。<br>
*/
@JsonProperty("RequestId")
private String requestId;
/**
* 事例:阿里云<br>
* 描述:签名名称。<br>
*/
@JsonProperty("SignName")
private String signName;
}

View File

@@ -0,0 +1,25 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* 短信模板
*
* @author Rey(leijiaping@newyetai.com)
*/
public class DeleteSmsTemplate implements Serializable {
/**
*
*/
private static final long serialVersionUID = 3423181148483950846L;
/**
* 是否必填:是<br>
* 事例:SMS\_152550005<br>
* 描述:短信模板 CODE。您可以在控制台 **模板管理** 页面或 API 接口 ** AddSmsTemplate** 的返回参数中获取短信模板 CODE。<br>
*/
@JsonProperty("TemplateCode")
private String templateCode;
}

View File

@@ -0,0 +1,61 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* 短信签名
*
* @author Rey(leijiaping@newyetai.com)
*/
public class ModifySmsSign implements Serializable {
/**
*
*/
private static final long serialVersionUID = 7033519742117645850L;
/**
* 是否必填:是<br>
* 事例:阿里云<br>
* 描述:签名内容。 **说明**
* 签名内容必须符合[个人用户签名规范](https://help.aliyun.com/document_detail/108076.html)或[企业用户签名规范](https://help.aliyun.com/document_detail/108254.html)。<br>
*/
@JsonProperty("SignName")
private String signName;
/**
* 是否必填:是<br>
* 事例:1<br>
* 描述:签名来源。其中: - 0:企事业单位的全称或简称。 - 1:工信部备案网站的全称或简称。 - 2:APP 应用的全称或简称。 - 3:公众号或小程序的全称或简称。 -
* 4:电商平台店铺名的全称或简称。 - 5:商标名的全称或简称 说明** 签名来源为 1 时,请在申请说明中添加网站域名,加快审核速度。<br>
*/
@JsonProperty("SignSource")
private Integer signSource;
/**
* 是否必填:是<br>
* 事例:当前的短信签名应用于双 11 大促推广营销<br>
* 描述:短信签名申请说明。请在申请说明中详细描述您的业务使用场景,申请工信部备案网站的全称或简称请在此处填写域名,长度不超过 200 个字符。<br>
*/
@JsonProperty("Remark")
private String remark;
/**
* 是否必填:否<br>
* 事例:jpg<br>
* 描述:签名的证明文件格式,支持上传多张图片。当前支持 jpg、png、gif 或 jpeg
* 格式的图片。个别场景下,申请签名需要上传证明文件。详细说明请参考[个人用户签名规范](https://help.aliyun.com/document_detail/108076.html)和[企业用户签名规范](https://help.aliyun.com/document_detail/108254.html)。<br>
*/
@JsonProperty("SignFileList.N.FileSuffix")
private String fileSuffix;
/**
* 是否必填:否<br>
* 事例:R0lGODlhHAAmAKIHAKqqqsvLy0hISObm5vf394uLiwAA<br>
* 描述:签名的质证明文件经 base64 编码后的字符串。图片不超过 2
* MB。个别场景下,申请签名需要上传证明文件。详细说明请参考[个人用户签名规范](https://help.aliyun.com/document_detail/108076.html)和[企业用户签名规范](https://help.aliyun.com/document_detail/108254.html)。<br>
*/
@JsonProperty("SignFileList.N.FileContents")
private String fileContents;
}

View File

@@ -0,0 +1,46 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* 短信签名
*
* @author Rey(leijiaping@newyetai.com)
*/
public class ModifySmsSignResponse implements Serializable {
/**
*
*/
private static final long serialVersionUID = 2556874115950958951L;
/**
* 事例:OK<br>
* 描述:请求状态码。 - 返回 OK 代表请求成功。 -
* 其他错误码详见[错误码列表](https://help.aliyun.com/document_detail/101346.html)。<br>
*/
@JsonProperty("Code")
private String code;
/**
* 事例:OK<br>
* 描述:状态码的描述。<br>
*/
@JsonProperty("Message")
private String message;
/**
* 事例:F655A8D5-B967-440B-8683-DAD6FF8DE990<br>
* 描述:请求 ID。<br>
*/
@JsonProperty("RequestId")
private String requestId;
/**
* 事例:阿里云<br>
* 描述:签名名称。<br>
*/
@JsonProperty("SignName")
private String signName;
}

View File

@@ -0,0 +1,60 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* 短信模板
*
* @author Rey(leijiaping@newyetai.com)
*/
public class ModifySmsTemplate implements Serializable {
/**
*
*/
private static final long serialVersionUID = 4824423254878168505L;
/**
* 是否必填:是<br>
* 事例:1<br>
* 描述:短信类型。其中: - 0 表示验证码。 - 1 表示短信通知。 - 2 表示推广短信。 - 3 国际 / 港澳台消息。<br>
*/
@JsonProperty("TemplateType")
private Integer templateType;
/**
* 是否必填:是<br>
* 事例:阿里云短信测试模板<br>
* 描述:模板名称,长度为 1~30 个字符。<br>
*/
@JsonProperty("TemplateName")
private String templateName;
/**
* 是否必填:是<br>
* 事例:您正在申请手机注册,验证码为:${code},5 分钟内有效!<br>
* 描述:模板内容,长度为 1~500
* 个字符。模板内容需要符合[文本短信模板规范](https://help.aliyun.com/document_detail/108253.html)或[国际 /
* 港澳台短信模板规范](https://help.aliyun.com/document_detail/108254.html)。 **说明**
* 修改模板时,请针对审核意见合理设计模板内容。<br>
*/
@JsonProperty("TemplateContent")
private String templateContent;
/**
* 是否必填:是<br>
* 事例:当前的短信模板应用于双 11 大促推广营销<br>
* 描述:短信模板申请说明。请在申请说明中描述您的业务使用场景,长度为 1~100 个字符。<br>
*/
@JsonProperty("Remark")
private String remark;
/**
* 是否必填:是<br>
* 事例:SMS\_152550005<br>
* 描述:短信模板 CODE。您可以在控制台 **模板管理** 页面或 API 接口 ** AddSmsTemplate** 的返回参数中获取短信模板 CODE。<br>
*/
@JsonProperty("TemplateCode")
private String templateCode;
}

View File

@@ -0,0 +1,57 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* 查询发送记录
*
* @author Rey(leijiaping@newyetai.com)
*/
public class QuerySendDetails implements Serializable {
/**
*
*/
private static final long serialVersionUID = -6796100129790552341L;
/**
* 是否必填:是<br>
* 事例:1<br>
* 描述:分页查看发送记录,指定发送记录的的当前页码。<br>
*/
@JsonProperty("CurrentPage")
private Long currentPage;
/**
* 是否必填:是<br>
* 事例:10<br>
* 描述:分页查看发送记录,指定每页显示的短信记录数量。取值范围为 1~50。<br>
*/
@JsonProperty("PageSize")
private Long pageSize;
/**
* 是否必填:是<br>
* 事例:15900000000<br>
* 描述:接收短信的手机号码。格式: - 国内短信:11 位手机号码,例如 15900000000。 - 国际 / 港澳台消息:国际区号 + 号码,例如 85200000000。<br>
*/
@JsonProperty("PhoneNumber")
private String phoneNumber;
/**
* 是否必填:是<br>
* 事例:20181228<br>
* 描述:短信发送日期,支持查询最近 30 天的记录。格式为 yyyyMMdd,例如 20181225。<br>
*/
@JsonProperty("SendDate")
private String sendDate;
/**
* 是否必填:否<br>
* 事例:134523^4351232<br>
* 描述:发送回执 ID,即发送流水号。调用发送接口 SendSms 或 SendBatchSms 发送短信时,返回值中的 BizId 字段。<br>
*/
@JsonProperty("BizId")
private String bizId;
}

View File

@@ -0,0 +1,26 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* 短信签名
*
* @author Rey(leijiaping@newyetai.com)
*/
public class QuerySmsSign implements Serializable {
/**
*
*/
private static final long serialVersionUID = 7244896668246210132L;
/**
* 是否必填:是<br>
* 事例:阿里云<br>
* 描述:签名名称。<br>
*/
@JsonProperty("SignName")
private String signName;
}

View File

@@ -0,0 +1,68 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* 短信签名
*
* @author Rey(leijiaping@newyetai.com)
*/
public class QuerySmsSignResponse implements Serializable {
/**
*
*/
private static final long serialVersionUID = 3695802019215175700L;
/**
* 事例:OK<br>
* 描述:请求状态码。 - 返回 OK 代表请求成功。 -
* 其他错误码详见[错误码列表](https://help.aliyun.com/document_detail/101346.html)。<br>
*/
@JsonProperty("Code")
private String code;
/**
* 事例:2019-01-08 16:44:13<br>
* 描述:短信签名的创建日期和时间。<br>
*/
@JsonProperty("CreateDate")
private String createDate;
/**
* 事例:OK<br>
* 描述:状态码描述。<br>
*/
@JsonProperty("Message")
private String message;
/**
* 事例:文件不能证明信息真实性,请重新上传<br>
* 描述:审核备注。 - 如果审核状态为 **审核通过** 或 **审核中** ,参数 Reason 显示为 &quot;无审核备注&quot;。 - 如果审核状态为 **审核未通过** ,参数
* Reason 显示审核的具体原因。<br>
*/
@JsonProperty("Reason")
private String reason;
/**
* 事例:CC89A90C-978F-46AC-B80D-54738371E7CA<br>
* 描述:请求 ID。<br>
*/
@JsonProperty("RequestId")
private String requestId;
/**
* 事例:阿里云<br>
* 描述:短信签名。<br>
*/
@JsonProperty("SignName")
private String signName;
/**
* 事例:1<br>
* 描述:签名审核状态。其中: - 0:审核中。 - 1:审核通过。 - 2:审核失败,请在返回参数 Reason 中查看审核失败原因。<br>
*/
@JsonProperty("SignStatus")
private Integer signStatus;
}

View File

@@ -0,0 +1,26 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* 短信模板
*
* @author Rey(leijiaping@newyetai.com)
*/
public class QuerySmsTemplate implements Serializable {
/**
*
*/
private static final long serialVersionUID = 7787624013394982501L;
/**
* 是否必填:是<br>
* 事例:SMS\_152550005<br>
* 描述:短信模板 CODE。您可以在控制台 **模板管理** 页面或 API 接口 ** AddSmsTemplate** 的返回参数中获取短信模板 CODE。<br>
*/
@JsonProperty("TemplateCode")
private String templateCode;
}

View File

@@ -0,0 +1,64 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* 查询查询短信模板的审核状态响应体
*
* @author Rey(leijiaping@newyetai.com) {@link undefined}
*/
public class QuerySmsTemplateResponse extends SmsResponse {
/** **/
private static final long serialVersionUID = 4855274472484572364L;
/**
* 事例:2019-06-04 11:42:17<br>
* 描述:短信模板的创建日期和时间。<br>
*/
@JsonProperty("CreateDate")
private String createDate;
/**
* 事例:非验证码类型短信,请选择短信通知类型为推广短信。<br>
* 描述:审核备注。 - 如果审核状态为 **审核通过** 或 **审核中** ,参数 Reason 显示为 &quot;无审核备注&quot;。 - 如果审核状态为 **审核未通过** ,参数
* Reason 显示审核的具体原因。<br>
*/
@JsonProperty("Reason")
private String reason;
/**
* 事例:SMS\_167035184<br>
* 描述:短信模板 CODE。<br>
*/
@JsonProperty("TemplateCode")
private String templateCode;
/**
* 事例:亲爱的会员!阿里云短信服务祝您新年快乐!<br>
* 描述:模板内容。<br>
*/
@JsonProperty("TemplateContent")
private String templateContent;
/**
* 事例:阿里云短信测试模板<br>
* 描述:模板名称。<br>
*/
@JsonProperty("TemplateName")
private String templateName;
/**
* 事例:1<br>
* 描述:模板审核状态。其中: - 0:审核中。 - 1:审核通过。 - 2:审核失败,请在返回参数 Reason 中查看审核失败原因。<br>
*/
@JsonProperty("TemplateStatus")
private Integer templateStatus;
/**
* 事例:1<br>
* 描述:短信类型。其中: - 0:验证码。 - 1:短信通知。 - 2:推广短信。 - 3:国际 / 港澳台消息。<br>
*/
@JsonProperty("TemplateType")
private Integer templateType;
}

View File

@@ -0,0 +1,70 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* 发送短信
*
* @author Rey(leijiaping@newyetai.com)
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SendBatchSms implements Serializable {
/**
*
*/
private static final long serialVersionUID = -721415853051957784L;
/**
* 是否必填:是<br>
* 事例:["15900000000","13500000000"]<br>
* 描述:接收短信的手机号码,JSON 数组格式。手机号码格式: - 国内短信:11 位手机号码,例如 15900000000。 - 国际 / 港澳台消息:国际区号 + 号码,例如
* 85200000000。 说明** 验证码类型短信,建议使用接口 SendSms 单独发送。<br>
*/
@JsonProperty("PhoneNumberJson")
private String phoneNumberJson;
/**
* 是否必填:是<br>
* 事例:["阿里云","阿里巴巴"]<br>
* 描述:短信签名名称,JSON 数组格式。请在控制台 **签名管理** 页面 **签名名称** 一列查看。 **说明**
* 必须是已添加、并通过审核的短信签名;且短信签名的个数必须与手机号码的个数相同、内容一一对应。<br>
*/
@JsonProperty("SignNameJson")
private String signNameJson;
/**
* 是否必填:是<br>
* 事例:SMS\_152550005<br>
* 描述:短信模板 CODE。请在控制台 **模板管理** 页面 **模板 CODE** 一列查看。 **说明** 必须是已添加、并通过审核的模板 CODE;且发送国际 /
* 港澳台消息时,请使用国际 / 港澳台短信模版。<br>
*/
@JsonProperty("TemplateCode")
private String templateCode;
/**
* 是否必填:否<br>
* 事例:["90999","90998"]<br>
* 描述:上行短信扩展码,JSON 数组格式。无特殊需要此字段的用户请忽略此字段。<br>
*/
@JsonProperty("SmsUpExtendCodeJson")
private String smsUpExtendCodeJson;
/**
* 是否必填:否<br>
* 事例:[{"name":"TemplateParamJson"},{"name":"TemplateParamJson"}]<br>
* 描述:短信模板变量对应的实际值,JSON 格式。 **说明** 如果 JSON 中需要带换行符,请参照标准的 JSON
* 协议处理;且模板变量值的个数必须与手机号码、签名的个数相同、内容一一对应,表示向指定手机号码中发对应签名的短信,且短信模板中的变量参数替换为对应的值。<br>
*/
@JsonProperty("TemplateParamJson")
private String templateParamJson;
}

View File

@@ -0,0 +1,77 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* 发送短信
*
* @author Rey(leijiaping@newyetai.com)
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SendSms implements Serializable {
/**
*
*/
private static final long serialVersionUID = 4127513146153674808L;
/**
* 是否必填:是<br>
* 事例:15900000000<br>
* 描述:接收短信的手机号码。格式: - 国内短信:11 位手机号码,例如 15951955195。 - 国际 / 港澳台消息:国际区号 + 号码,例如 85200000000。
* 支持对多个手机号码发送短信,手机号码之间以英文逗号(,)分隔。上限为 1000 个手机号码。批量调用相对于单条调用及时性稍有延迟。 **说明**
* 验证码类型短信,建议使用单独发送的方式。<br>
*/
@JsonProperty("PhoneNumbers")
private String phoneNumbers;
/**
* 是否必填:是<br>
* 事例:阿里云<br>
* 描述:短信签名名称。请在控制台 **签名管理** 页面 **签名名称** 一列查看。 **说明** 必须是已添加、并通过审核的短信签名。<br>
*/
@JsonProperty("SignName")
private String signName;
/**
* 是否必填:是<br>
* 事例:SMS\_153055065<br>
* 描述:短信模板 ID。请在控制台 **模板管理** 页面 **模板 CODE** 一列查看。 **说明** 必须是已添加、并通过审核的短信签名;且发送国际 / 港澳台消息时,请使用国际 /
* 港澳台短信模版。<br>
*/
@JsonProperty("TemplateCode")
private String templateCode;
/**
* 是否必填:否<br>
* 事例:abcdefgh<br>
* 描述:外部流水扩展字段。<br>
*/
@JsonProperty("OutId")
private String outId;
/**
* 是否必填:否<br>
* 事例:90999<br>
* 描述:上行短信扩展码,无特殊需要此字段的用户请忽略此字段。<br>
*/
@JsonProperty("SmsUpExtendCode")
private String smsUpExtendCode;
/**
* 是否必填:否<br>
* 事例:{"code":"1111"}<br>
* 描述:短信模板变量对应的实际值,JSON 格式。 **说明** 如果 JSON 中需要带换行符,请参照标准的 JSON 协议处理。<br>
*/
@JsonProperty("TemplateParam")
private String templateParam;
}

View File

@@ -0,0 +1,16 @@
package com.newyetai.sdk.sms.model;
import lombok.NoArgsConstructor;
/**
* 发送短信(单个/批量)响应体
*
* @author Rey(leijiaping@newyetai.com) {@link undefined}
*/
@NoArgsConstructor
public class SendSmsResponse extends SmsResponse {
/** **/
private static final long serialVersionUID = -1884360556092571210L;
}

View File

@@ -0,0 +1,40 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.io.Serializable;
/**
* 短信响应体
*
* @author Rey(leijiaping@newyetai.com) {@link undefined}
*/
@SuppressWarnings("serial")
@Data
public class SmsResponse implements Serializable{
/**
* 事例:OK<br>
* 描述:请求状态码。 - 返回 OK 代表请求成功。 -
* 其他错误码详见[错误码列表](https://help.aliyun.com/document_detail/101346.html)。<br>
*/
@JsonProperty("Code")
private String code;
/**
* 事例:OK<br>
* 描述:状态码的描述。<br>
*/
@JsonProperty("Message")
private String message;
/**
* 事例:F655A8D5-B967-440B-8683-DAD6FF8DE990<br>
* 描述:请求 ID。<br>
*/
@JsonProperty("RequestId")
private String requestId;
}

View File

@@ -0,0 +1,74 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* 短信发送明细
*
* @author Rey(leijiaping@newyetai.com) {@link undefined}
*/
public class SmsSendDetailResponse implements Serializable {
/**
*
*/
private static final long serialVersionUID = -4473285026346918644L;
/**
* 事例:【阿里云】验证码为:123,您正在登录,若非本人操作,请勿泄露<br>
* 描述:短信内容。<br>
*/
@JsonProperty("Content")
private String content;
/**
* 事例:DELIVRD<br>
* 描述:运营商短信状态码。 - 短信发送成功:DELIVRD。 -
* 短信发送失败:失败错误码请参考[错误码文档](https://help.aliyun.com/document_detail/101347.html)。<br>
*/
@JsonProperty("ErrCode")
private String errCode;
/**
* 事例:123<br>
* 描述:外部流水扩展字段。<br>
*/
@JsonProperty("OutId")
private String outId;
/**
* 事例:15200000000<br>
* 描述:接收短信的手机号码。<br>
*/
@JsonProperty("PhoneNum")
private String phoneNum;
/**
* 事例:2019-01-08 16:44:13<br>
* 描述:短信接收日期和时间。<br>
*/
@JsonProperty("ReceiveDate")
private String receiveDate;
/**
* 事例:2019-01-08 16:44:10<br>
* 描述:短信发送日期和时间。<br>
*/
@JsonProperty("SendDate")
private String sendDate;
/**
* 事例:3<br>
* 描述:短信发送状态,包括: - 1:等待回执。 - 2:发送失败。 - 3:发送成功。<br>
*/
@JsonProperty("SendStatus")
private Long sendStatus;
/**
* 事例:SMS\_122310183<br>
* 描述:短信模板 ID。<br>
*/
@JsonProperty("TemplateCode")
private String templateCode;
}

View File

@@ -0,0 +1,20 @@
package com.newyetai.sdk.sms.model;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* 短信模板响应体
* @author Rey(leijiaping@newyetai.com)
*{@link undefined}
*/
public class SmsTemplateResponse extends SmsResponse{
/** **/
private static final long serialVersionUID = -8499116525368789422L;
/**
* 事例:SMS\_152550005<br>
* 描述:短信模板 CODE。您可以使用模板 CODE 通过 API 接口 ** QuerySmsTemplate** 或在控制台查看模板申请状态和结果。<br>
*/
@JsonProperty("TemplateCode")
private String templateCode;
}