提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.sms.vo.template; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotNull; |
|
7 |
|
|
8 |
@Schema(description = "管理后台 - 短信模板创建/修改 Request VO") |
|
9 |
@Data |
|
10 |
public class SmsTemplateSaveReqVO { |
|
11 |
|
|
12 |
@Schema(description = "编号", example = "1024") |
|
13 |
private Long id; |
|
14 |
|
|
15 |
@Schema(description = "短信类型,参见 SmsTemplateTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
16 |
@NotNull(message = "短信类型不能为空") |
|
17 |
private Integer type; |
|
18 |
|
|
19 |
@Schema(description = "开启状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
20 |
@NotNull(message = "开启状态不能为空") |
|
21 |
private Integer status; |
|
22 |
|
|
23 |
@Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "test_01") |
|
24 |
@NotNull(message = "模板编码不能为空") |
|
25 |
private String code; |
|
26 |
|
|
27 |
@Schema(description = "模板名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
28 |
@NotNull(message = "模板名称不能为空") |
|
29 |
private String name; |
|
30 |
|
|
31 |
@Schema(description = "模板内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "你好,{name}。你长的太{like}啦!") |
|
32 |
@NotNull(message = "模板内容不能为空") |
|
33 |
private String content; |
|
34 |
|
|
35 |
@Schema(description = "备注", example = "哈哈哈") |
|
36 |
private String remark; |
|
37 |
|
|
38 |
@Schema(description = "短信 API 的模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "4383920") |
|
39 |
@NotNull(message = "短信 API 的模板编号不能为空") |
|
40 |
private String apiTemplateId; |
|
41 |
|
|
42 |
@Schema(description = "短信渠道编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
|
43 |
@NotNull(message = "短信渠道编号不能为空") |
|
44 |
private Long channelId; |
|
45 |
|
|
46 |
} |