package com.microservices.cms.doc.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.microservices.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author otto
 */
@Data
@ApiModel("热点文章")
public class HotCmsDocDto {
    /**
     * 文章标识
     */
    @Excel(name = "文章标识")
    @ApiModelProperty("文章标识")
    private Long id;
    /**
     * 文章名称
     */
    @Excel(name = "文章名称")
    @ApiModelProperty("文章名称")
    private String name;

    @ApiModelProperty("文章概要")
    private String summary;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("发布时间")
    private Date publishTime;
    @ApiModelProperty(value = "文章头图")
    private String headImg;
}
