package com.ishop.model.vo;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
public class ArticleVo 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 Long getVisit() {
|
return visit;
|
}
|
|
public void setVisit(Long visit) {
|
this.visit = visit;
|
}
|
|
public Integer getSort() {
|
return sort;
|
}
|
|
public void setSort(Integer sort) {
|
this.sort = sort;
|
}
|
|
public Boolean getStatus() {
|
return status;
|
}
|
|
public void setStatus(Boolean status) {
|
this.status = status;
|
}
|
|
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 String getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(String createTime) {
|
this.createTime = createTime;
|
}
|
|
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;
|
}
|
|
private String synopsis; // 由于原始对象返回vo有多个,搅乱,这里统一返回文章VO,有些属性是后端特有的
|
private String content;
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
|
|
|
// @ApiModelProperty(value = "文章管理ID")
|
private Long id;
|
|
// @ApiModelProperty(value = "分类id")
|
private Long cid;
|
|
// @ApiModelProperty(value = "文章标题")
|
private String title;
|
|
// @ApiModelProperty(value = "文章作者")
|
private String author;
|
|
// @ApiModelProperty(value = "文章封面")
|
private String cover;
|
|
// @ApiModelProperty(value = "浏览次数")
|
private Long visit;
|
|
// @ApiModelProperty(value = "排序")
|
private Integer sort;
|
|
// @ApiModelProperty(value = "状态,0-关闭,1-开启")
|
private Boolean status;
|
|
// @ApiModelProperty(value = "是否热门(小程序)")
|
private Boolean isHot;
|
|
// @ApiModelProperty(value = "是否轮播图(小程序)")
|
private Boolean isBanner;
|
|
// @ApiModelProperty(value = "创建时间")
|
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
|
private String createTime;
|
}
|