| | |
| | | package com.ruoyi.basic.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 通用文件上传的附件信息 实体类 |
| | | * |
| | | * @author ruoyi |
| | | * @date 2025-05-29 |
| | | */ |
| | | @Data |
| | | @TableName("storage_blob") |
| | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** 创建时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | // @TableField(fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 资源id |
| | | */ |
| | | @TableField(value = "key") |
| | | private String key; |
| | | @TableField(value = "resource_key") |
| | | private String resourceKey; |
| | | /** |
| | | * 资源类型,例如JPG图片的资源类型为image/jpg |
| | | */ |
| | |
| | | private String originalFilename; |
| | | |
| | | /** |
| | | * 存储桶中 |
| | | * 唯一文件名称 |
| | | */ |
| | | @TableField(value = "bucket_filename") |
| | | private String bucketFilename; |
| | | /** |
| | | * 存储桶名 |
| | | */ |
| | | @TableField(value = "bucket_name") |
| | | private String bucketName; |
| | | @TableField(value = "uid_filename") |
| | | private String uidFilename; |
| | | |
| | | /** |
| | | * 资源尺寸(字节) |
| | | */ |
| | | @TableField(value = "byte_size") |
| | | private Long byteSize; |
| | | |
| | | /** |
| | | * 文件路径 |
| | | */ |
| | | @TableField(value = "path") |
| | | private String path; |
| | | } |