提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.sms.vo.log; |
H |
2 |
|
|
3 |
import com.iailab.framework.excel.core.annotations.DictFormat; |
|
4 |
import com.iailab.framework.excel.core.convert.DictConvert; |
|
5 |
import com.iailab.framework.excel.core.convert.JsonConvert; |
|
6 |
import com.iailab.module.system.enums.DictTypeConstants; |
|
7 |
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|
8 |
import com.alibaba.excel.annotation.ExcelProperty; |
|
9 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
10 |
import lombok.Data; |
|
11 |
|
|
12 |
import java.time.LocalDateTime; |
|
13 |
import java.util.Map; |
|
14 |
|
|
15 |
@Schema(description = "管理后台 - 短信日志 Response VO") |
|
16 |
@Data |
|
17 |
@ExcelIgnoreUnannotated |
|
18 |
public class SmsLogRespVO { |
|
19 |
|
|
20 |
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
21 |
@ExcelProperty("编号") |
|
22 |
private Long id; |
|
23 |
|
|
24 |
@Schema(description = "短信渠道编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
|
25 |
@ExcelProperty("短信渠道编号") |
|
26 |
private Long channelId; |
|
27 |
|
|
28 |
@Schema(description = "短信渠道编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "ALIYUN") |
|
29 |
@ExcelProperty("短信渠道编码") |
|
30 |
private String channelCode; |
|
31 |
|
|
32 |
@Schema(description = "模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20") |
|
33 |
@ExcelProperty("模板编号") |
|
34 |
private Long templateId; |
|
35 |
|
|
36 |
@Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "test-01") |
|
37 |
@ExcelProperty("模板编码") |
|
38 |
private String templateCode; |
|
39 |
|
|
40 |
@Schema(description = "短信类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
41 |
@ExcelProperty(value = "短信类型", converter = DictConvert.class) |
|
42 |
@DictFormat(DictTypeConstants.SMS_TEMPLATE_TYPE) |
|
43 |
private Integer templateType; |
|
44 |
|
|
45 |
@Schema(description = "短信内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "你好,你的验证码是 1024") |
|
46 |
@ExcelProperty("短信内容") |
|
47 |
private String templateContent; |
|
48 |
|
|
49 |
@Schema(description = "短信参数", requiredMode = Schema.RequiredMode.REQUIRED, example = "name,code") |
|
50 |
@ExcelProperty(value = "短信参数", converter = JsonConvert.class) |
|
51 |
private Map<String, Object> templateParams; |
|
52 |
|
|
53 |
@Schema(description = "短信 API 的模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "SMS_207945135") |
|
54 |
@ExcelProperty("短信 API 的模板编号") |
|
55 |
private String apiTemplateId; |
|
56 |
|
|
57 |
@Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15601691300") |
|
58 |
@ExcelProperty("手机号") |
|
59 |
private String mobile; |
|
60 |
|
|
61 |
@Schema(description = "用户编号", example = "10") |
|
62 |
@ExcelProperty("用户编号") |
|
63 |
private Long userId; |
|
64 |
|
|
65 |
@Schema(description = "用户类型", example = "1") |
|
66 |
@ExcelProperty(value = "用户类型", converter = DictConvert.class) |
|
67 |
@DictFormat(DictTypeConstants.USER_TYPE) |
|
68 |
private Integer userType; |
|
69 |
|
|
70 |
@Schema(description = "发送状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
71 |
@ExcelProperty(value = "发送状态", converter = DictConvert.class) |
|
72 |
@DictFormat(DictTypeConstants.SMS_SEND_STATUS) |
|
73 |
private Integer sendStatus; |
|
74 |
|
|
75 |
@Schema(description = "发送时间") |
|
76 |
@ExcelProperty("发送时间") |
|
77 |
private LocalDateTime sendTime; |
|
78 |
|
|
79 |
@Schema(description = "短信 API 发送结果的编码", example = "SUCCESS") |
|
80 |
@ExcelProperty("短信 API 发送结果的编码") |
|
81 |
private String apiSendCode; |
|
82 |
|
|
83 |
@Schema(description = "短信 API 发送失败的提示", example = "成功") |
|
84 |
@ExcelProperty("短信 API 发送失败的提示") |
|
85 |
private String apiSendMsg; |
|
86 |
|
|
87 |
@Schema(description = "短信 API 发送返回的唯一请求 ID", example = "3837C6D3-B96F-428C-BBB2-86135D4B5B99") |
|
88 |
@ExcelProperty("短信 API 发送返回的唯一请求 ID") |
|
89 |
private String apiRequestId; |
|
90 |
|
|
91 |
@Schema(description = "短信 API 发送返回的序号", example = "62923244790") |
|
92 |
@ExcelProperty("短信 API 发送返回的序号") |
|
93 |
private String apiSerialNo; |
|
94 |
|
|
95 |
@Schema(description = "接收状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0") |
|
96 |
@ExcelProperty(value = "接收状态", converter = DictConvert.class) |
|
97 |
@DictFormat(DictTypeConstants.SMS_RECEIVE_STATUS) |
|
98 |
private Integer receiveStatus; |
|
99 |
|
|
100 |
@Schema(description = "接收时间") |
|
101 |
@ExcelProperty("接收时间") |
|
102 |
private LocalDateTime receiveTime; |
|
103 |
|
|
104 |
@Schema(description = "API 接收结果的编码", example = "DELIVRD") |
|
105 |
@ExcelProperty("API 接收结果的编码") |
|
106 |
private String apiReceiveCode; |
|
107 |
|
|
108 |
@Schema(description = "API 接收结果的说明", example = "用户接收成功") |
|
109 |
@ExcelProperty("API 接收结果的说明") |
|
110 |
private String apiReceiveMsg; |
|
111 |
|
|
112 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
113 |
@ExcelProperty("创建时间") |
|
114 |
private LocalDateTime createTime; |
|
115 |
|
|
116 |
} |