zhubaomin
2025-04-07 1a2b07f01ba4616fd9e894dddf474b56d020158c
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
package com.dy.pipIrrGlobal.dyFile;
 
import com.alibaba.fastjson2.annotation.JSONField;
import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
import lombok.Data;
 
@Data
public class FileVo {
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    public Long id ; //数据库实体主键
    public Integer hash ;//文件名hash
    public String orgName ;//文件原名
    public String extName ;//文件扩展名
    public String filePath ;//文件在服务端存储相对路径
    public String webPath ;//web文件访问路径
    public String webPathZip;//照片文件缩略图访问路径,其他类型文件此属性为null
    public String downloadPath;//web文件下载路径,应用时路径后面加上 ?id=[id]
 
    public FileVo(){}
 
    public FileVo(Long id,
                  Integer hash,
                  String orgName,
                  String extName,
                  String filePath,
                  String webPath,
                  String webPathZip,
                  String downloadPath){
        this.id = id ;
        this.hash = hash ;
        this.orgName = orgName ;
        this.extName = extName ;
        this.filePath = filePath ;
        this.webPath = webPath ;
        this.webPathZip = webPathZip ;
        this.downloadPath = downloadPath ;
    }
}