package com.trs.digital.module.manager.controller.admin.digsearch.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 = "管理后台 - 资源搜索 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DigsearchRespVO {

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

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "资源名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("资源名称")
    private String docTitle;

    @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 = "文件来源", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("文件来源")
    private String sourcename;

    @Schema(description = "语种")
    @ExcelProperty("语种")
    private String language;

}