inleft
2022-02-21 a9c4c99791e4d43971afd863946a2b0c4db44708
commit | author | age
a9c4c9 1
I 2 package vip.xiaonuo.modular.blogarticle.param;
3
4 import lombok.Data;
5 import vip.xiaonuo.core.pojo.base.param.BaseParam;
6
7 import javax.validation.constraints.NotBlank;
8 import javax.validation.constraints.NotNull;
9
10 /**
11 * blog文章参数类
12  *
13  * @author inleft
14  * @date 2022-02-09 18:21:14
15 */
16 @Data
17 public class BlogArticleAddDto extends BaseParam {
18
19
20
21     /**
22      * 文章标题
23      */
24     @NotBlank(message = "文章标题不能为空,请检查title参数", groups = {add.class, edit.class})
25     private String title;
26
27     /**
28      * 文章文件id
29      */
30     @NotNull(message = "文章文件id不能为空,请检查articleFileId参数", groups = {add.class, edit.class})
31     private Long articleFileId;
32
33     /**
34      * 文件类型
35      */
36     private Integer articleFileType;
37
38     /**
39      * 文章分类
40      */
41     @NotNull(message = "文章分类不能为空,请检查articleTypeId参数", groups = {add.class, edit.class})
42     private Long articleTypeId;
43
44     /**
45      * 文章引言
46      */
47     private String introduce;
48
49     /**
50      * 封面文件
51      */
52     private Long coverFileId;
53
54     /**
55      * 上次编辑时间
56      */
57     private String lastEditorDate;
58
59     /**
60      * 发布时间
61      */
62     private String publishDate;
63
64     /**
65      * 是否置顶
66      */
67     @NotNull(message = "是否置顶不能为空,请检查isTop参数", groups = {add.class, edit.class})
68     private Integer isTop;
69
70     /**
71      * 置顶值
72      */
73     private Integer topValue;
74
75     /**
76      * 公开状态
77      */
78     private Integer authStatus;
79
80     /**
81      * 授权密码
82      */
83     private String authPassword;
84
85     /**
86      * 编辑状态
87      */
88     private Integer editorStatus;
89
90
91 }