package com.ruoyi.basic.pojo; import com.baomidou.mybatisplus.annotation.*; import lombok.Data; import java.io.Serializable; /** * 通用文件上传的附件信息 实体类 * */ @Data @TableName("storage_blob") public class StorageBlob implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Long id; /** * 资源id */ @TableField(value = "resource_key") private String resourceKey; /** * 资源类型,例如JPG图片的资源类型为image/jpg */ @TableField(value = "content_type") private String contentType; /** * 原文件名 */ @TableField(value = "original_filename") private String originalFilename; /** * 唯一文件名称 */ @TableField(value = "uid_filename") private String uidFilename; /** * 资源尺寸(字节) */ @TableField(value = "byte_size") private Long byteSize; /** * 文件路径 */ @TableField(value = "path") private String path; }