use of com.zyd.blog.business.entity.File in project OneBlog by zhangyd-c.
the class BaseFileUploader method removeFile.
boolean removeFile(ApiClient apiClient, String filePath, String uploadType) {
BizFileService fileService = SpringContextHolder.getBean(BizFileService.class);
File file = fileService.selectFileByPathAndUploadType(filePath, uploadType);
String fileKey = filePath;
if (null != file) {
fileKey = file.getFilePath();
}
return apiClient.removeFile(fileKey);
}
Aggregations