package com.trs.digital.module.manager.controller.admin.oracle.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.trs.digital.framework.excel.core.annotations.DictFormat;
import com.trs.digital.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - oracle资源库管理 Response VO")
@Data
@ExcelIgnoreUnannotated
public class OracleResourceRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "4227")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "创建者")
    @ExcelProperty("创建者")
    private String creator;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "资源名称")
    @ExcelProperty("资源名称")
    private String docTitle;

    @Schema(description = "正文")
    @ExcelProperty("正文")
    private String docContent;

    @Schema(description = "摘要")
    private String docAbstract;

    @Schema(description = "译文")
    @ExcelProperty("译文")
    private String docContentTranslate;

    @Schema(description = "作者")
    @ExcelProperty("作者")
    private String docEditer;

    @Schema(description = "原文件名", example = "芋艿")
    @ExcelProperty("原文件名")
    private String fileName;

    @Schema(description = "原文件路径")
    @ExcelProperty("原文件路径")
    private String filePath;

    @Schema(description = "原文件后缀类型", example = "1")
    @ExcelProperty(value = "原文件后缀类型", converter = DictConvert.class)
    @DictFormat("digital_filetype") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String fileType;

    @Schema(description = "原文件创建日期")
    @ExcelProperty("原文件创建日期")
    private LocalDateTime fileCrtime;

    @Schema(description = "原文件修改日期")
    @ExcelProperty("原文件修改日期")
    private LocalDateTime fileUpdatetime;

    @Schema(description = "分类标签")
    @ExcelProperty("分类标签")
    private String docLable;

    @Schema(description = "地域标签")
    @ExcelProperty("地域标签")
    private String areaLable;

    @Schema(description = "机构标签")
    @ExcelProperty("机构标签")
    private String orgLable;

    @Schema(description = "人物标签")
    @ExcelProperty("人物标签")
    private String peopleLable;

    @Schema(description = "批次")
    @ExcelProperty("批次")
    private String batchNo;

    @Schema(description = "文件来源", example = "赵六")
    @ExcelProperty(value = "文件来源", converter = DictConvert.class)
    @DictFormat("digital_file_sourcename") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String sourcename;

    @Schema(description = "语种")
    @ExcelProperty(value = "语种", converter = DictConvert.class)
    @DictFormat("digital_file_language") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String language;

    @Schema(description = "文件年份")
    @ExcelProperty("文件年份")
    private String fileYear;

    @Schema(description = "数据唯一id", example = "29694")
    @ExcelProperty("数据唯一id")
    private String docid;

}