liding
2 天以前 2da4c045299aad5898dea78d7c9371491ce2c155
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
package com.ruoyi.business.entity;
 
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
    import com.ruoyi.common.core.domain.MyBaseEntity;
 
/**
* 上传文件的基本信息 实体类
*
* @author ruoyi
* @date 2025-06-10
*/
@Data
@TableName("file")
public class File extends MyBaseEntity {
 
private static final long serialVersionUID = 1L;
 
        /**
        * 主键ID
        */
            @TableId(value = "id", type = IdType.AUTO)
        private Long id;
        /**
        * 关联的档案ID,外键引用 archive.id
        */
            @TableField(value = "archive_id")
        private Long archiveId;
        /**
        * 原始文件名(用户上传时的名称)
        */
            @TableField(value = "original_name")
        private String originalName;
        /**
        * 预览地址
        */
            @TableField(value = "preview_url")
        private String previewUrl;
        /**
        * 系统存储的唯一文件名
        */
            @TableField(value = "file_name")
        private String fileName;
        /**
        * 文件在服务器上的存储路径或访问URL
        */
            @TableField(value = "file_path")
        private String filePath;
        /**
        * 文件MIME类型,例如 image/png、application/pdf
        */
            @TableField(value = "file_type")
        private String fileType;
        /**
        * 文件大小,单位为字节
        */
            @TableField(value = "file_size")
        private String fileSize;
}