|
package vip.xiaonuo.modular.blogarticle.param;
|
|
import lombok.Data;
|
import vip.xiaonuo.core.pojo.base.param.BaseParam;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
|
/**
|
* blog文章参数类
|
*
|
* @author inleft
|
* @date 2022-02-09 18:21:14
|
*/
|
@Data
|
public class BlogArticleAddDto extends BaseParam {
|
|
|
|
/**
|
* 文章标题
|
*/
|
@NotBlank(message = "文章标题不能为空,请检查title参数", groups = {add.class, edit.class})
|
private String title;
|
|
/**
|
* 文章文件id
|
*/
|
@NotNull(message = "文章文件id不能为空,请检查articleFileId参数", groups = {add.class, edit.class})
|
private Long articleFileId;
|
|
/**
|
* 文件类型
|
*/
|
private Integer articleFileType;
|
|
/**
|
* 文章分类
|
*/
|
@NotNull(message = "文章分类不能为空,请检查articleTypeId参数", groups = {add.class, edit.class})
|
private Long articleTypeId;
|
|
/**
|
* 文章引言
|
*/
|
private String introduce;
|
|
/**
|
* 封面文件
|
*/
|
private Long coverFileId;
|
|
/**
|
* 上次编辑时间
|
*/
|
private String lastEditorDate;
|
|
/**
|
* 发布时间
|
*/
|
private String publishDate;
|
|
/**
|
* 是否置顶
|
*/
|
@NotNull(message = "是否置顶不能为空,请检查isTop参数", groups = {add.class, edit.class})
|
private Integer isTop;
|
|
/**
|
* 置顶值
|
*/
|
private Integer topValue;
|
|
/**
|
* 公开状态
|
*/
|
private Integer authStatus;
|
|
/**
|
* 授权密码
|
*/
|
private String authPassword;
|
|
/**
|
* 编辑状态
|
*/
|
private Integer editorStatus;
|
|
|
}
|