提交 | 用户 | age
|
6de4e8
|
1 |
package com.hz.sms.dto; |
童 |
2 |
|
|
3 |
|
6dde8c
|
4 |
import com.hx.util.StringUtils; |
童 |
5 |
import lombok.Data; |
|
6 |
|
6de4e8
|
7 |
import java.text.SimpleDateFormat; |
童 |
8 |
import java.util.Date; |
|
9 |
|
6dde8c
|
10 |
@Data |
6de4e8
|
11 |
public class SmsGeneralSendDto { |
童 |
12 |
|
6dde8c
|
13 |
/* 标识 (记录sms_general_item表数据的id)*/ |
6de4e8
|
14 |
private String id; |
6dde8c
|
15 |
/* 账号*/ |
童 |
16 |
private String account; |
|
17 |
/* 密码*/ |
|
18 |
private String password; |
|
19 |
/*签名*/ |
|
20 |
private String sign; |
|
21 |
/* 定时短信时间,格式为yyyyMMddHHmm,值小于或等于当前时间则立即发送,默认立即发送*/ |
|
22 |
private String timestamp; |
6de4e8
|
23 |
/*短信内容*/ |
童 |
24 |
private String msg; |
|
25 |
/*手机号码*/ |
|
26 |
private String phone; |
|
27 |
/*定时发送短信时间*/ |
15ab19
|
28 |
private String sendTime; |
6de4e8
|
29 |
/*如需状态报告则传true*/ |
6dde8c
|
30 |
private String report; |
6de4e8
|
31 |
/*下发短信号码扩展码*/ |
童 |
32 |
private String extend; |
|
33 |
/*该条短信在您业务系统内的ID*/ |
|
34 |
private String uid; |
6dde8c
|
35 |
/*短信类型*/ |
童 |
36 |
private Integer smsType; |
15ab19
|
37 |
/* 发送模式 (0: 立即发送; 1:异步发送)*/ |
童 |
38 |
private Integer sendModel; |
6de4e8
|
39 |
|
童 |
40 |
|
|
41 |
public Date getDateSendTime(){ |
|
42 |
try { |
15ab19
|
43 |
Date dateSendTime = new SimpleDateFormat("yyyyMMddHHmm").parse(sendTime); |
6de4e8
|
44 |
return dateSendTime; |
童 |
45 |
}catch (Exception e){ |
|
46 |
return null; |
|
47 |
} |
|
48 |
} |
|
49 |
|
|
50 |
public String getReport() { |
6dde8c
|
51 |
if (!StringUtils.isEmpty(report) && !"true".equals(report)){ |
童 |
52 |
return null; |
|
53 |
} |
6de4e8
|
54 |
return report; |
童 |
55 |
} |
|
56 |
} |