package ink.wgink.module.article.pojo.vos.content;

import ink.wgink.annotation.CheckEmptyAnnotation;
import ink.wgink.annotation.CheckNumberAnnotation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @ClassName: ArticleContentVO
 * @Description: 文章内容
 * @Author: WenG
 * @Date: 2020-04-03 15:37
 * @Version: 1.0
 **/
@ApiModel
public class ContentVO {

    @ApiModelProperty(name = "title", value = "标题")
    @CheckEmptyAnnotation(name = "标题")
    private String title;
    @ApiModelProperty(name = "subTitle", value = "子标题")
    private String subTitle;
    @ApiModelProperty(name = "summary", value = "概述")
    private String summary;
    @ApiModelProperty(name = "link", value = "外链地址")
    private String link;
    @ApiModelProperty(name = "source", value = "来源")
    private String source;
    @ApiModelProperty(name = "author", value = "作者")
    private String author;
    @ApiModelProperty(name = "publishDate", value = "发布时间")
    @CheckEmptyAnnotation(name = "发布时间", verifyType = "date")
    private String publishDate;
    @ApiModelProperty(name = "isPublish", value = "是否发布")
    @CheckNumberAnnotation(name = "是否发布")
    private Integer isPublish;
    @ApiModelProperty(name = "content", value = "正文")
    private String content;
    @ApiModelProperty(name = "sort", value = "排序")
    private String sort;
    @ApiModelProperty(name = "categoryId", value = "文章类别")
    private String categoryId;
    @ApiModelProperty(name = "coverPhotos", value = "封面图")
    private String coverPhotos;

    public String getTitle() {
        return title == null ? "" : title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubTitle() {
        return subTitle == null ? "" : subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getSummary() {
        return summary == null ? "" : summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getLink() {
        return link == null ? "" : link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getSource() {
        return source == null ? "" : source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getAuthor() {
        return author == null ? "" : author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublishDate() {
        return publishDate == null ? "" : publishDate;
    }

    public void setPublishDate(String publishDate) {
        this.publishDate = publishDate;
    }

    public Integer getIsPublish() {
        return isPublish == null ? 0 : isPublish;
    }

    public void setIsPublish(Integer isPublish) {
        this.isPublish = isPublish;
    }

    public String getContent() {
        return content == null ? "" : content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSort() {
        return sort == null ? "" : sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getCategoryId() {
        return categoryId == null ? "" : categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getCoverPhotos() {
        return coverPhotos == null ? "" : coverPhotos;
    }

    public void setCoverPhotos(String coverPhotos) {
        this.coverPhotos = coverPhotos;
    }
}
