chenhj
4 天以前 4d70e622d2f1786c2ef25fa732bbcec599fe8b14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package com.ruoyi.basic.entity;
 
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;
 
import java.io.Serializable;
import java.util.Date;
 
/**
 * 通用文件上传的附件信息 实体类
 *
 * @author ruoyi
 * @date 2025-05-29
 */
@Data
@TableName("storage_blob")
public class StorageBlob implements Serializable {
 
    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;
    /**
     * 资源类型,例如JPG图片的资源类型为image/jpg
     */
    @TableField(value = "content_type")
    private String contentType;
    /**
     * 原文件名
     */
    @TableField(value = "original_filename")
    private String originalFilename;
 
    /**
     * 存储桶中
     */
    @TableField(value = "bucket_filename")
    private String bucketFilename;
    /**
     * 存储桶名
     */
    @TableField(value = "bucket_name")
    private String bucketName;
    /**
     * 资源尺寸(字节)
     */
    @TableField(value = "byte_size")
    private Long byteSize;
}