package com.ishop.model.request;
|
|
import java.io.Serializable;
|
|
public class ArticleRequest implements Serializable {
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Long getCid() {
|
return cid;
|
}
|
|
public void setCid(Long cid) {
|
this.cid = cid;
|
}
|
|
public String getTitle() {
|
return title;
|
}
|
|
public void setTitle(String title) {
|
this.title = title;
|
}
|
|
public String getAuthor() {
|
return author;
|
}
|
|
public void setAuthor(String author) {
|
this.author = author;
|
}
|
|
public String getCover() {
|
return cover;
|
}
|
|
public void setCover(String cover) {
|
this.cover = cover;
|
}
|
|
public String getSynopsis() {
|
return synopsis;
|
}
|
|
public void setSynopsis(String synopsis) {
|
this.synopsis = synopsis;
|
}
|
|
public String getContent() {
|
return content;
|
}
|
|
public void setContent(String content) {
|
this.content = content;
|
}
|
|
public Boolean getIsHot() {
|
return isHot;
|
}
|
|
public void setIsHot(Boolean hot) {
|
isHot = hot;
|
}
|
|
public Boolean getIsBanner() {
|
return isBanner;
|
}
|
|
public void setIsBanner(Boolean banner) {
|
isBanner = banner;
|
}
|
|
public Integer getSort() {
|
return sort;
|
}
|
|
public void setSort(Integer sort) {
|
this.sort = sort;
|
}
|
|
// @ApiModelProperty(value = "文章ID,新增时不传,修改时必传")
|
private Long id;
|
|
// @ApiModelProperty(value = "文章分类id", required = true)
|
// @NotNull(message = "请选择文章分类")
|
private Long cid;
|
|
// @ApiModelProperty(value = "文章标题", required = true)
|
// @NotBlank(message = "请填写文章标题")
|
// @Length(max = 200, message = "文章标题最多200个字符")
|
private String title;
|
|
// @ApiModelProperty(value = "文章作者", required = true)
|
// @NotBlank(message = "请填写文章作者")
|
// @Length(max = 50, message = "文章作者最多50个字符")
|
private String author;
|
|
// @ApiModelProperty(value = "文章封面", required = true)
|
// @NotBlank(message = "请上传文章封面")
|
// @Length(max = 255, message = "文章封面路径最多255个字符")
|
private String cover;
|
|
// @ApiModelProperty(value = "文章简介", required = true)
|
// @Length(max = 200, message = "文章简介最多200个字符")
|
// @NotBlank(message = "请填写文章简介")
|
private String synopsis;
|
|
// @ApiModelProperty(value = "文章内容", required = true)
|
// @NotBlank(message = "请填写文章内容")
|
private String content;
|
|
// @ApiModelProperty(value = "是否热门(小程序)", example = "false")
|
// @NotNull(message = "是否热门(小程序)不能为空")
|
private Boolean isHot;
|
|
// @ApiModelProperty(value = "是否轮播图(小程序)", example = "true")
|
// @NotNull(message = "是否轮播图(小程序)不能为空")
|
private Boolean isBanner;
|
|
// @ApiModelProperty(value = "排序")
|
// @Range(min = 0, max = 9999, message = "排序范围为0~9999")
|
private Integer sort;
|
}
|