inleft
2022-02-21 552004d0902687de16cd50e3378d4d6671d7f015
commit | author | age
a9c4c9 1
I 2 package vip.xiaonuo.modular.blogarticle.param;
3
552004 4 import com.fasterxml.jackson.annotation.JsonFormat;
a9c4c9 5 import lombok.Data;
I 6 import vip.xiaonuo.core.pojo.base.param.BaseParam;
7
8 import javax.validation.constraints.NotBlank;
552004 9 import javax.validation.constraints.NotEmpty;
a9c4c9 10 import javax.validation.constraints.NotNull;
552004 11 import java.util.Date;
I 12 import java.util.List;
a9c4c9 13
I 14 /**
552004 15  * blog文章参数类
a9c4c9 16  *
I 17  * @author inleft
18  * @date 2022-02-09 18:21:14
552004 19  */
a9c4c9 20 @Data
I 21 public class BlogArticleAddDto extends BaseParam {
22
23
552004 24     @NotEmpty(message = "需要口令", groups = {add.class, edit.class})
I 25     private String secret;
a9c4c9 26
I 27     /**
28      * 文章标题
29      */
30     @NotBlank(message = "文章标题不能为空,请检查title参数", groups = {add.class, edit.class})
31     private String title;
32
33     /**
34      * 文章分类
35      */
36     @NotNull(message = "文章分类不能为空,请检查articleTypeId参数", groups = {add.class, edit.class})
37     private Long articleTypeId;
552004 38
I 39     @NotNull
40     private Integer isOnline;
41
42     /**
43      * 文章文件id
44      */
45     private Long articleFileId;
46
47     /**
48      * 在线生成文件内容
49      */
50     private String content;
51
52     /**
53      * 文件类型
54      */
55     @NotNull(message = "文件类型不能为空,请检查articleFileType参数", groups = {add.class, edit.class})
56     private Integer articleFileType;
a9c4c9 57
I 58     /**
59      * 文章引言
60      */
61     private String introduce;
62
63     /**
64      * 封面文件
65      */
66     private Long coverFileId;
67
68     /**
69      * 发布时间
70      */
552004 71     @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
I 72     private Date publishDate;
a9c4c9 73
I 74     /**
75      * 是否置顶
76      */
77     @NotNull(message = "是否置顶不能为空,请检查isTop参数", groups = {add.class, edit.class})
78     private Integer isTop;
79
80     /**
81      * 置顶值
82      */
83     private Integer topValue;
84
552004 85     private Integer isLock;
a9c4c9 86     /**
I 87      * 公开状态
88      */
552004 89     @NotNull(message = "公开状态不能为空,请检查authStatus参数", groups = {add.class, edit.class})
a9c4c9 90     private Integer authStatus;
I 91
92     /**
93      * 授权密码
94      */
95     private String authPassword;
96
97     /**
98      * 编辑状态
99      */
552004 100     @NotNull(message = "编辑状态不能为空,请检查editorStatus参数", groups = {add.class, edit.class})
a9c4c9 101     private Integer editorStatus;
I 102
552004 103     private List<String> tags;
a9c4c9 104
I 105 }