package com.fs.hisStore.vo.home;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 期刊输出参数（小程序）
 */
@Data
public class HomeArticleListVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文章id")
    private Long articleId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "封面图片")
    private String imageUrl;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "观看人数")
    private Integer views;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "发布时间")
    private Date publishTime;

    @ApiModelProperty(value = "描述")
    private String description;

}
