@@ -1,5 +1,6 @@
package com.xunmei.system.api.domain;
+import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -8,6 +9,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
*
* @author xunmei
*/
+@Data
public class SysFile {
/**
* 文件名称
@@ -60,6 +60,7 @@ public class SysFileController {
url = prefix + url;
sysFile.setUrl(url);
sysFile.setCode(code);
+ sysFile.setRealName(file.getOriginalFilename());
return R.ok(sysFile);
} catch (Exception e) {
log.error("上传文件失败", e);