mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-05-06 03:51:25 +08:00
update 优化 rpc文件上传 增加 ossId 数据返回
This commit is contained in:
@@ -14,6 +14,11 @@ public class SysFile implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* oss主键
|
||||
*/
|
||||
private Long ossId;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
|
||||
@@ -47,6 +47,7 @@ public class RemoteFileServiceImpl implements RemoteFileService {
|
||||
oss.setService(storage.getConfigKey());
|
||||
sysOssMapper.insert(oss);
|
||||
SysFile sysFile = new SysFile();
|
||||
sysFile.setOssId(oss.getOssId());
|
||||
sysFile.setName(uploadResult.getFilename());
|
||||
sysFile.setUrl(uploadResult.getUrl());
|
||||
return sysFile;
|
||||
|
||||
Reference in New Issue
Block a user