From d175d9c401fb97ebe6a580005a8c9ad5fedccb6b Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期一, 29 七月 2024 17:02:41 +0800
Subject: [PATCH] add other method
---
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/dyFile/FileVo.java | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/dyFile/FileVo.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/dyFile/FileVo.java
index 45fcf4d..6bcb82c 100644
--- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/dyFile/FileVo.java
+++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/dyFile/FileVo.java
@@ -1,15 +1,19 @@
package com.dy.pmsGlobal.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 ;//鏂囦欢鍚峢ash
public String orgName ;//鏂囦欢鍘熷悕
public String extName ;//鏂囦欢鎵╁睍鍚�
public String webPath ;//web鏂囦欢璁块棶璺緞
public String webPathZip;//鐓х墖鏂囦欢缂╃暐鍥捐闂矾寰勶紝鍏朵粬绫诲瀷鏂囦欢姝ゅ睘鎬т负null
+ public String downloadPath;//web鏂囦欢涓嬭浇璺緞锛屽簲鐢ㄦ椂璺緞鍚庨潰鍔犱笂 ?id=[id]
public FileVo(){}
@@ -18,12 +22,14 @@
String orgName,
String extName,
String webPath,
- String webPathZip){
+ String webPathZip,
+ String downloadPath){
this.id = id ;
this.hash = hash ;
this.orgName = orgName ;
this.extName = extName ;
this.webPath = webPath ;
this.webPathZip = webPathZip ;
+ this.downloadPath = downloadPath ;
}
}
--
Gitblit v1.8.0