package com.cmvr.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

@Data
@ApiModel("文件信息")
public class SysFileInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("文件ID")
    @TableId(type = IdType.AUTO)
    private Long fileId;

    @ApiModelProperty("文件名")
    private String fileName;

    @ApiModelProperty("文件地址")
    private String filePath;

    @ApiModelProperty("文件大小")
    private Long fileSize;

    @ApiModelProperty(value = "文件类型", notes = "枚举: FileType")
    private Integer fileType;

    @ApiModelProperty("上传人")
//    @TableField(fill = FieldFill.INSERT) // todo 暂时不要 没有token
    private String createBy;

    @ApiModelProperty("上传时间")
//    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("文件MD5值")
    private String md5;
}
