feat: return gateway url and local url while upload file
This commit is contained in:
@@ -15,6 +15,11 @@ public class SysFile
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 文件内部地址
|
||||
*/
|
||||
private String localUrl;
|
||||
|
||||
/**
|
||||
* 文件地址
|
||||
*/
|
||||
@@ -30,6 +35,14 @@ public class SysFile
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getLocalUrl() {
|
||||
return localUrl;
|
||||
}
|
||||
|
||||
public void setLocalUrl(String localUrl) {
|
||||
this.localUrl = localUrl;
|
||||
}
|
||||
|
||||
public String getUrl()
|
||||
{
|
||||
return url;
|
||||
@@ -44,6 +57,7 @@ public class SysFile
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("name", getName())
|
||||
.append("localUrl", getLocalUrl())
|
||||
.append("url", getUrl())
|
||||
.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user