提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.notify.vo.template; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.enums.CommonStatusEnum; |
|
4 |
import com.iailab.framework.common.validation.InEnum; |
|
5 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
6 |
import lombok.Data; |
|
7 |
|
|
8 |
import javax.validation.constraints.NotEmpty; |
|
9 |
import javax.validation.constraints.NotNull; |
|
10 |
|
|
11 |
@Schema(description = "管理后台 - 站内信模版创建/修改 Request VO") |
|
12 |
@Data |
|
13 |
public class NotifyTemplateSaveReqVO { |
|
14 |
|
|
15 |
@Schema(description = "ID", example = "1024") |
|
16 |
private Long id; |
|
17 |
|
|
18 |
@Schema(description = "模版名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "测试模版") |
|
19 |
@NotEmpty(message = "模版名称不能为空") |
|
20 |
private String name; |
|
21 |
|
|
22 |
@Schema(description = "模版编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "SEND_TEST") |
|
23 |
@NotNull(message = "模版编码不能为空") |
|
24 |
private String code; |
|
25 |
|
|
26 |
@Schema(description = "模版类型,对应 system_notify_template_type 字典", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
27 |
@NotNull(message = "模版类型不能为空") |
|
28 |
private Integer type; |
|
29 |
|
|
30 |
@Schema(description = "发送人名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "土豆") |
|
31 |
@NotEmpty(message = "发送人名称不能为空") |
|
32 |
private String nickname; |
|
33 |
|
|
34 |
@Schema(description = "模版内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是模版内容") |
|
35 |
@NotEmpty(message = "模版内容不能为空") |
|
36 |
private String content; |
|
37 |
|
|
38 |
@Schema(description = "状态,参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
39 |
@NotNull(message = "状态不能为空") |
|
40 |
@InEnum(value = CommonStatusEnum.class, message = "状态必须是 {value}") |
|
41 |
private Integer status; |
|
42 |
|
|
43 |
@Schema(description = "备注", example = "我是备注") |
|
44 |
private String remark; |
|
45 |
|
|
46 |
} |