提交 8208be6e 编写于 作者: sq3536's avatar sq3536

disk fix bug

上级 2db126c9
......@@ -2,7 +2,7 @@ package cn.ibizlab.core.disk.extensions.service;
import cn.ibizlab.core.disk.domain.SDFile;
import cn.ibizlab.core.disk.service.ISDFileService;
import cn.ibizlab.util.domain.FileItem;
import cn.ibizlab.core.disk.extensions.vo.FileItem;
import cn.ibizlab.util.errors.BadRequestAlertException;
import cn.ibizlab.util.errors.InternalServerErrorException;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
......@@ -59,7 +59,7 @@ public class DiskCoreService {
if(!StringUtils.isEmpty(fileId))
sdFile.setId(fileId);
if(!StringUtils.isEmpty(folder))
sdFile.setId(folder);
sdFile.setFolder(folder);
if(!StringUtils.isEmpty(ownerId))
sdFile.setOwnerId(ownerId);
if(!StringUtils.isEmpty(ownerType))
......
......@@ -2,7 +2,7 @@ package cn.ibizlab.api.rest.extensions;
import cn.ibizlab.core.disk.extensions.service.DiskCoreService;
import cn.ibizlab.util.domain.FileItem;
import cn.ibizlab.core.disk.extensions.vo.FileItem;
import cn.ibizlab.util.errors.BadRequestAlertException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
......
......@@ -9,7 +9,6 @@ import lombok.Data;
@Data
@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@AllArgsConstructor
public class FileItem
{
private String id;
......@@ -28,4 +27,13 @@ public class FileItem
this.size = size;
this.ext = ext;
}
public FileItem(String id, String name, String fileid, String filename, long size, String ext,String authcode) {
this.id = id;
this.name = name;
this.fileid = fileid;
this.filename = filename;
this.size = size;
this.ext = ext;
this.authcode = authcode;
}
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册