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 |
|
4adb00
|
68 |
private String pictureIds; |
I |
69 |
|
|
70 |
private String videoIds; |
|
71 |
|
a9c4c9
|
72 |
/** |
I |
73 |
* 发布时间 |
|
74 |
*/ |
552004
|
75 |
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
I |
76 |
private Date publishDate; |
a9c4c9
|
77 |
|
I |
78 |
/** |
|
79 |
* 是否置顶 |
|
80 |
*/ |
|
81 |
@NotNull(message = "是否置顶不能为空,请检查isTop参数", groups = {add.class, edit.class}) |
|
82 |
private Integer isTop; |
|
83 |
|
|
84 |
/** |
|
85 |
* 置顶值 |
|
86 |
*/ |
|
87 |
private Integer topValue; |
|
88 |
|
552004
|
89 |
private Integer isLock; |
a9c4c9
|
90 |
/** |
I |
91 |
* 公开状态 |
|
92 |
*/ |
552004
|
93 |
@NotNull(message = "公开状态不能为空,请检查authStatus参数", groups = {add.class, edit.class}) |
a9c4c9
|
94 |
private Integer authStatus; |
I |
95 |
|
|
96 |
/** |
|
97 |
* 授权密码 |
|
98 |
*/ |
|
99 |
private String authPassword; |
|
100 |
|
|
101 |
/** |
|
102 |
* 编辑状态 |
|
103 |
*/ |
552004
|
104 |
@NotNull(message = "编辑状态不能为空,请检查editorStatus参数", groups = {add.class, edit.class}) |
a9c4c9
|
105 |
private Integer editorStatus; |
I |
106 |
|
552004
|
107 |
private List<String> tags; |
a9c4c9
|
108 |
|
I |
109 |
} |