09-22-文件服务暴露删除方法
This commit is contained in:
@ -3,6 +3,7 @@ package org.dromara.resource.api;
|
||||
import org.dromara.common.core.exception.ServiceException;
|
||||
import org.dromara.resource.api.domain.RemoteFile;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -35,4 +36,7 @@ public interface RemoteFileService {
|
||||
* @return 列表
|
||||
*/
|
||||
List<RemoteFile> selectByIds(String ossIds);
|
||||
|
||||
|
||||
void deleteFile(Collection<String> urls);
|
||||
}
|
||||
|
||||
@ -4,6 +4,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.resource.api.domain.RemoteFile;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -50,4 +51,9 @@ public class RemoteFileServiceMock implements RemoteFileService {
|
||||
return List.of();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteFile(Collection<String> urls){
|
||||
log.warn("服务调用异常 -> 降级处理");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user