eight
2024-11-21 74868ba9e0775ccc21d02ef9e0f805bd1e6ae0aa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package cn.lihu.jh.module.system.api.notify.dto;
 
import cn.lihu.jh.framework.common.enums.CommonStatusEnum;
import cn.lihu.jh.framework.common.validation.InEnum;
import lombok.Data;
 
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
 
@Data
public class NotifyTemplateReqDTO {
 
    @NotEmpty(message = "模版名称不能为空")
    private String name;
 
    @NotNull(message = "模版编码不能为空")
    private String code;
 
    @NotNull(message = "模版类型不能为空")
    private Integer type;
 
    @NotEmpty(message = "发送人名称不能为空")
    private String nickname;
 
    @NotEmpty(message = "模版内容不能为空")
    private String content;
 
    @NotNull(message = "状态不能为空")
    @InEnum(value = CommonStatusEnum.class, message = "状态必须是 {value}")
    private Integer status;
 
    private String remark;
 
}