package com.dayu.pipirrapp.bean.net; /** * uploadFileResult -> 上传文件结果 * * @author zuoxiao * @version 1.0 * @since 2025-01-14 */ public class UploadFileResult { // 文件下载web路径 private String downloadPath; // 文件扩展名 private String extName; // 文件在服务端存储相对路径 private String filePath; // 文件的哈希值 private int hash; // 文件id(数据库记录ID ) private String id; // 文件原始名称 private String orgName; // 文件web路径(在浏览器中直接显示) private String webPath; // 照片或视频的缩略图web路径(在浏览器中直接显示) private String webPathZip; // 构造函数 public UploadFileResult(String downloadPath, String extName, String filePath, int hash, String id, String orgName, String webPath, String webPathZip) { this.downloadPath = downloadPath; this.extName = extName; this.filePath = filePath; this.hash = hash; this.id = id; this.orgName = orgName; this.webPath = webPath; this.webPathZip = webPathZip; } // Getter和Setter方法 public String getDownloadPath() { return downloadPath; } public void setDownloadPath(String downloadPath) { this.downloadPath = downloadPath; } public String getExtName() { return extName; } public void setExtName(String extName) { this.extName = extName; } public String getFilePath() { return filePath; } public void setFilePath(String filePath) { this.filePath = filePath; } public int getHash() { return hash; } public void setHash(int hash) { this.hash = hash; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getOrgName() { return orgName; } public void setOrgName(String orgName) { this.orgName = orgName; } public String getWebPath() { return webPath; } public void setWebPath(String webPath) { this.webPath = webPath; } public String getWebPathZip() { return webPathZip; } public void setWebPathZip(String webPathZip) { this.webPathZip = webPathZip; } }