mitao
2025-01-20 93fec20f3cf9d7801eeaa10acef4687ed110d435
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
66
67
68
69
70
71
72
73
74
75
76
package com.zzg.system.domain;
 
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zzg.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
 
/**
 * 文件对象 sys_files
 *
 * @author yepanpan
 * @date 2020-11-20
 */
@ApiModel("文件实体")
@Getter
@Setter
public class SysFiles extends BaseEntity {
    private static final long serialVersionUID = 1L;
 
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("ID")
    private String id;
 
    /**
     * 文件虚拟ID
     */
    private String fileId;
 
    /**
     * 文件名
     */
    @Excel(name = "文件名")
    @ApiModelProperty("文件名")
    private String title;
 
    /**
     * 路径
     */
    @Excel(name = "路径")
    @ApiModelProperty("路径")
    private String path;
 
    /**
     * MD5值
     */
    @Excel(name = "MD5值")
    @ApiModelProperty("MD5值")
    private String md5;
 
    /**
     * 真实路径
     */
    @ApiModelProperty("真实路径")
    private String realPath;
 
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("fileId", getFileId())
                .append("title", getTitle())
                .append("path", getPath())
                .append("realPath", getRealPath())
                .append("md5", getMd5())
                .append("realPath", getRealPath())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .toString();
    }
}