package com.izouma.jmrh.dto;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Column;
import java.time.LocalDateTime;

@Data
@ExcelIgnoreUnannotated
@ApiModel("文章信息")
public class ArticleDTO {
    @ExcelProperty("ID")
    private Long id;

    @ExcelProperty("标题")
    private String title;

    @ExcelProperty("封面")
    private String cover;

    @ExcelProperty("内容")
    @Column(columnDefinition = "TEXT")
    private String content;

    @ExcelProperty("是否已发布")
    private String publish;

    @ExcelProperty("一级分类")
    private String mainType;

    @ExcelProperty("二级分类")
    private String subType;

    @ExcelProperty("审核状态")
    private String status;

    @ExcelProperty("创建时间")
    private LocalDateTime createdAt;
}
