package com.ruoyi.export.domain.vo;

import java.util.Date;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;



/**
 * 文章视图对象 export_article
 *
 * @author JR
 * @date 2025-07-16
 */
@Data
@ExcelIgnoreUnannotated
public class ExportArticleVo {

    private static final long serialVersionUID = 1L;

    /**
     * 文章主键
     */
    @ExcelProperty(value = "文章主键")
    private Long articleId;

    /**
     * 所属文章分类ID
     */
    @ExcelProperty(value = "所属文章分类ID")
    private Long categoryId;

    /**
     * 语言编码
     */
    @ExcelProperty(value = "语言编码")
    private String langCode;

    /**
     * SEO 友好链接
     */
    @ExcelProperty(value = "SEO 友好链接")
    private String slug;

    /**
     * 文章标题
     */
    @ExcelProperty(value = "文章标题")
    private String title;

    /**
     * 摘要
     */
    @ExcelProperty(value = "摘要")
    private String summary;

    /**
     * 文章内容
     */
    @ExcelProperty(value = "文章内容")
    private String content;

    /**
     * 发布状态（0=未发布，1=已发布）
     */
    @ExcelProperty(value = "发布状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0==未发布，1=已发布")
    private Integer isPublished;

    /**
     * 发布时间
     */
    @ExcelProperty(value = "发布时间")
    private Date publishedTime;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Long sortOrder;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
