|
@@ -6,6 +6,7 @@ import org.springblade.core.oss.model.OssFile;
|
|
|
import org.springblade.core.tenant.annotation.NonDS;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springblade.resource.builder.oss.OssBuilder;
|
|
|
+import org.springblade.resource.vo.NewBladeFile;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -27,6 +28,7 @@ public class NewIOSSClientImpl implements NewIOSSClient {
|
|
|
* 对象存储构建类
|
|
|
*/
|
|
|
private final OssBuilder ossBuilder;
|
|
|
+ private final CommonFileClientImpl commonFileClientImpl;
|
|
|
|
|
|
@Override
|
|
|
public BladeFile uploadFileByInputStream(MultipartFile file) {
|
|
@@ -70,6 +72,11 @@ public class NewIOSSClientImpl implements NewIOSSClient {
|
|
|
ossBuilder.template().removeFiles(fileNames);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public NewBladeFile excelToPdf(MultipartFile file) {
|
|
|
+ return commonFileClientImpl.excelToPdf(file);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public BladeFile uploadFile(String fileName, String localFileUrl) {
|
|
|
try {
|