package com.hotwj.platform.noticeManagerment.fileTypeConfig.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.hotwj.platform.noticeManagerment.fileTypeConfig.domain.HotFileTypeConfig;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 文件类型配置视图对象 hot_file_type_config
 *
 * @author shihongwei
 * @date 2026-03-25
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotFileTypeConfig.class)
public class HotFileTypeConfigVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 公司ID（多租户标识）
     */
    @ExcelProperty(value = "公司ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "多=租户标识")
    private Long companyId;

    /**
     * 名称（如：图片、文档、视频）
     */
    @ExcelProperty(value = "名称", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "如=：图片、文档、视频")
    private String name;

    /**
     * 值（如：jpg,png,pdf,mp4）
     */
    @ExcelProperty(value = "值", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "如=：jpg,png,pdf,mp4")
    private String value;

    /**
     * 排序（数值越小越靠前）
     */
    @ExcelProperty(value = "排序", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "数=值越小越靠前")
    private Long sortOrder;

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

    /**
     * 创建者姓名
     */
    @ExcelProperty(value = "创建者姓名")
    private String createByName;

    /**
     * 更新者姓名
     */
    @ExcelProperty(value = "更新者姓名")
    private String updateByName;

    /**
     * 0=正常, 1=已删除
     */
    @ExcelProperty(value = "0=正常, 1=已删除")
    private Long isDeleted;

    private Date createTime;

}
