package com.zhgd.xmgl.modules.basicdata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

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

/**
 * @Description: 附件表
 * @author： pds
 * @date： 2023-02-22
 * @version： V1.0
 */
@Data
@TableName("annex_file")
@ApiModel(value = "AnnexFile实体类", description = "AnnexFile")
public class AnnexFile implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 文件id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "文件id(主键ID)")
    private Integer fileId;
    /**
     * 关联id
     */
    @Excel(name = "关联id", width = 15)
    @ApiModelProperty(value = "关联id")
    private String relevanceId;
    /**
     * 文件名
     */
    @Excel(name = "文件名", width = 15)
    @ApiModelProperty(value = "文件名")
    private String fileName;
    /**
     * 扩展名
     */
    @Excel(name = "扩展名", width = 15)
    @ApiModelProperty(value = "扩展名")
    private String extendName;
    /**
     * 文件url
     */
    @Excel(name = "文件url", width = 15)
    @ApiModelProperty(value = "文件url")
    private String fileUrl;
    /**
     * 上传时间
     */
    @Excel(name = "上传时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "上传时间")
    private Date createTime;
    /**
     * 文件大小
     */
    @Excel(name = "文件大小", width = 15)
    @ApiModelProperty(value = "文件大小")
    private String fileSize;
    /**
     * 类型(1:工程附件;2:通知公告附件;3:政策法规附件;)
     */
    @Excel(name = "类型(1:工程附件;2:通知公告附件;3:政策法规附件;)", width = 15)
    @ApiModelProperty(value = "类型(1:工程附件;2:通知公告附件;3:政策法规附件;)")
    private Integer fileType;
}
