package org.jeecg.modules.system.entity; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.NoArgsConstructor; import org.jeecg.common.aspect.annotation.Dict; import org.jeecgframework.poi.excel.annotation.Excel; import java.util.Date; /** * @Description: 文档 * @author clown */ @Data @NoArgsConstructor @TableName(value = "file_doc_info") public class FileDocInfo { @TableId(value = "id") private String id; /**文件名称*/ @Excel(name = "文件名称", width = 15) @ApiModelProperty(value = "文件名称") private String fileName; /**文件加密后的名称*/ @Excel(name = "文件加密后的名称", width = 15) @ApiModelProperty(value = "文件加密后的名称") private String fileEncodeName; /**文件路径*/ @Excel(name = "文件路径", width = 15) @ApiModelProperty(value = "文件路径") private String filePath; /**文件大小*/ @Excel(name = "文件大小", width = 15) @ApiModelProperty(value = "文件大小") private Long fileSize; /**文件后缀*/ @Excel(name = "文件后缀", width = 15) @ApiModelProperty(value = "文件后缀") private String fileSuffix; @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") @TableField(value = "create_time", fill = FieldFill.INSERT) private Date createTime; @TableField(value = "update_time", fill = FieldFill.UPDATE) @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private Date updateTime; @TableField(value = "create_by",fill = FieldFill.INSERT) @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") private String createBy; @TableField(value = "update_by", fill = FieldFill.UPDATE) @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") private String updateBy; @JsonIgnore @TableLogic @TableField(value = "delete_flag", select = false) private Integer deleteFlag = 0; }