update 优化 rpc文件上传 增加 ossId 数据返回

2.X
疯狂的狮子li 2 years ago
parent c862861315
commit cc064316f2

@ -14,6 +14,11 @@ public class SysFile implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* oss
*/
private Long ossId;
/** /**
* *
*/ */

@ -47,6 +47,7 @@ public class RemoteFileServiceImpl implements RemoteFileService {
oss.setService(storage.getConfigKey()); oss.setService(storage.getConfigKey());
sysOssMapper.insert(oss); sysOssMapper.insert(oss);
SysFile sysFile = new SysFile(); SysFile sysFile = new SysFile();
sysFile.setOssId(oss.getOssId());
sysFile.setName(uploadResult.getFilename()); sysFile.setName(uploadResult.getFilename());
sysFile.setUrl(uploadResult.getUrl()); sysFile.setUrl(uploadResult.getUrl());
return sysFile; return sysFile;

Loading…
Cancel
Save