commit | author | age
|
9bcb19
|
1 |
/* |
I |
2 |
Copyright [2020] [https://www.xiaonuo.vip] |
|
3 |
|
|
4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
you may not use this file except in compliance with the License. |
|
6 |
You may obtain a copy of the License at |
|
7 |
|
|
8 |
http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
|
|
10 |
Unless required by applicable law or agreed to in writing, software |
|
11 |
distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
See the License for the specific language governing permissions and |
|
14 |
limitations under the License. |
|
15 |
|
|
16 |
Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点: |
|
17 |
|
|
18 |
1.请不要删除和修改根目录下的LICENSE文件。 |
|
19 |
2.请不要删除和修改Snowy源码头部的版权声明。 |
|
20 |
3.请保留源码和相关描述文件的项目出处,作者声明等。 |
|
21 |
4.分发源码时候,请注明软件出处 https://gitee.com/xiaonuobase/snowy |
|
22 |
5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/xiaonuobase/snowy |
|
23 |
6.若您的项目无法满足以上几点,可申请商业授权,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip |
|
24 |
*/ |
|
25 |
package vip.xiaonuo.modular.blogarticle.param; |
|
26 |
|
|
27 |
import lombok.Data; |
|
28 |
import vip.xiaonuo.core.pojo.base.param.BaseParam; |
|
29 |
|
|
30 |
import javax.validation.constraints.NotBlank; |
|
31 |
import javax.validation.constraints.NotNull; |
|
32 |
|
|
33 |
/** |
f1b087
|
34 |
* blog文章参数类 |
9bcb19
|
35 |
* |
I |
36 |
* @author inleft |
f1b087
|
37 |
* @date 2022-02-09 18:21:14 |
9bcb19
|
38 |
*/ |
I |
39 |
@Data |
|
40 |
public class BlogArticleParam extends BaseParam { |
|
41 |
|
|
42 |
/** |
|
43 |
* 主键 |
|
44 |
*/ |
|
45 |
@NotNull(message = "主键不能为空,请检查id参数", groups = {edit.class, delete.class, detail.class}) |
|
46 |
private Long id; |
|
47 |
|
|
48 |
/** |
|
49 |
* 文章标题 |
|
50 |
*/ |
|
51 |
@NotBlank(message = "文章标题不能为空,请检查title参数", groups = {add.class, edit.class}) |
|
52 |
private String title; |
|
53 |
|
|
54 |
/** |
|
55 |
* 文章文件id |
|
56 |
*/ |
|
57 |
@NotNull(message = "文章文件id不能为空,请检查articleFileId参数", groups = {add.class, edit.class}) |
|
58 |
private Long articleFileId; |
|
59 |
|
|
60 |
/** |
f1b087
|
61 |
* 文件类型 |
9bcb19
|
62 |
*/ |
I |
63 |
private Integer articleFileType; |
|
64 |
|
|
65 |
/** |
f1b087
|
66 |
* 文章分类 |
9bcb19
|
67 |
*/ |
f1b087
|
68 |
@NotNull(message = "文章分类不能为空,请检查articleTypeId参数", groups = {add.class, edit.class}) |
9bcb19
|
69 |
private Long articleTypeId; |
I |
70 |
|
|
71 |
/** |
|
72 |
* 文章引言 |
|
73 |
*/ |
|
74 |
private String introduce; |
|
75 |
|
|
76 |
/** |
f1b087
|
77 |
* 封面文件 |
9bcb19
|
78 |
*/ |
I |
79 |
private Long coverFileId; |
|
80 |
|
|
81 |
/** |
|
82 |
* 上次编辑时间 |
|
83 |
*/ |
|
84 |
private String lastEditorDate; |
|
85 |
|
|
86 |
/** |
|
87 |
* 发布时间 |
|
88 |
*/ |
|
89 |
private String publishDate; |
|
90 |
|
|
91 |
/** |
f1b087
|
92 |
* 是否置顶 |
9bcb19
|
93 |
*/ |
f1b087
|
94 |
@NotNull(message = "是否置顶不能为空,请检查isTop参数", groups = {add.class, edit.class}) |
9bcb19
|
95 |
private Integer isTop; |
I |
96 |
|
|
97 |
/** |
f1b087
|
98 |
* 置顶值 |
9bcb19
|
99 |
*/ |
I |
100 |
private Integer topValue; |
|
101 |
|
|
102 |
/** |
f1b087
|
103 |
* 公开状态 |
9bcb19
|
104 |
*/ |
I |
105 |
private Integer authStatus; |
|
106 |
|
|
107 |
/** |
f1b087
|
108 |
* 授权密码 |
9bcb19
|
109 |
*/ |
I |
110 |
private String authPassword; |
|
111 |
|
|
112 |
/** |
f1b087
|
113 |
* 编辑状态 |
9bcb19
|
114 |
*/ |
I |
115 |
private Integer editorStatus; |
|
116 |
|
|
117 |
/** |
f1b087
|
118 |
* 归档年份 |
9bcb19
|
119 |
*/ |
I |
120 |
private Integer separateYear; |
|
121 |
|
|
122 |
/** |
|
123 |
* 归档月份 |
|
124 |
*/ |
|
125 |
private Integer separateMonth; |
|
126 |
|
|
127 |
/** |
|
128 |
* 归档日 |
|
129 |
*/ |
|
130 |
private Integer separateDay; |
|
131 |
|
|
132 |
/** |
f1b087
|
133 |
* 是否启用 |
9bcb19
|
134 |
*/ |
I |
135 |
private Integer isEnable; |
|
136 |
|
|
137 |
/** |
|
138 |
* 更新时间 |
|
139 |
*/ |
|
140 |
private String updateDate; |
|
141 |
|
|
142 |
/** |
|
143 |
* 创建时间 |
|
144 |
*/ |
|
145 |
private String createDate; |
|
146 |
|
|
147 |
} |