提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.sms.vo.template; |
H |
2 |
|
|
3 |
import com.iailab.framework.excel.core.annotations.DictFormat; |
|
4 |
import com.iailab.framework.excel.core.convert.DictConvert; |
|
5 |
import com.iailab.module.system.enums.DictTypeConstants; |
|
6 |
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|
7 |
import com.alibaba.excel.annotation.ExcelProperty; |
|
8 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
9 |
import lombok.Data; |
|
10 |
|
|
11 |
import java.time.LocalDateTime; |
|
12 |
import java.util.List; |
|
13 |
|
|
14 |
@Schema(description = "管理后台 - 短信模板 Response VO") |
|
15 |
@Data |
|
16 |
@ExcelIgnoreUnannotated |
|
17 |
public class SmsTemplateRespVO { |
|
18 |
|
|
19 |
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
20 |
@ExcelProperty("编号") |
|
21 |
private Long id; |
|
22 |
|
|
23 |
@Schema(description = "短信类型,参见 SmsTemplateTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
24 |
@ExcelProperty(value = "短信签名", converter = DictConvert.class) |
|
25 |
@DictFormat(DictTypeConstants.SMS_TEMPLATE_TYPE) |
|
26 |
private Integer type; |
|
27 |
|
|
28 |
@Schema(description = "开启状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
29 |
@ExcelProperty(value = "开启状态", converter = DictConvert.class) |
|
30 |
@DictFormat(DictTypeConstants.COMMON_STATUS) |
|
31 |
private Integer status; |
|
32 |
|
|
33 |
@Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "test_01") |
|
34 |
@ExcelProperty("模板编码") |
|
35 |
private String code; |
|
36 |
|
|
37 |
@Schema(description = "模板名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
38 |
@ExcelProperty("模板名称") |
|
39 |
private String name; |
|
40 |
|
|
41 |
@Schema(description = "模板内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "你好,{name}。你长的太{like}啦!") |
|
42 |
@ExcelProperty("模板内容") |
|
43 |
private String content; |
|
44 |
|
|
45 |
@Schema(description = "参数数组", example = "name,code") |
|
46 |
private List<String> params; |
|
47 |
|
|
48 |
@Schema(description = "备注", example = "哈哈哈") |
|
49 |
@ExcelProperty("备注") |
|
50 |
private String remark; |
|
51 |
|
|
52 |
@Schema(description = "短信 API 的模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "4383920") |
|
53 |
@ExcelProperty("短信 API 的模板编号") |
|
54 |
private String apiTemplateId; |
|
55 |
|
|
56 |
@Schema(description = "短信渠道编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
|
57 |
@ExcelProperty("短信渠道编号") |
|
58 |
private Long channelId; |
|
59 |
|
|
60 |
@Schema(description = "短信渠道编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "ALIYUN") |
|
61 |
@ExcelProperty(value = "短信渠道编码", converter = DictConvert.class) |
|
62 |
@DictFormat(DictTypeConstants.SMS_CHANNEL_CODE) |
|
63 |
private String channelCode; |
|
64 |
|
|
65 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
66 |
@ExcelProperty("创建时间") |
|
67 |
private LocalDateTime createTime; |
|
68 |
|
|
69 |
} |