|
@@ -1,6 +1,7 @@
|
|
package com.itheima.file.service.impl;
|
|
package com.itheima.file.service.impl;
|
|
|
|
|
|
import com.heima.file.service.FileStorageService;
|
|
import com.heima.file.service.FileStorageService;
|
|
|
|
+import com.itheima.file.service.Demo1Service;
|
|
import com.itheima.file.service.WmMaterialService;
|
|
import com.itheima.file.service.WmMaterialService;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -17,6 +18,9 @@ public class WmMaterialServiceImpl implements WmMaterialService {
|
|
@Autowired
|
|
@Autowired
|
|
private FileStorageService fileStorageService;
|
|
private FileStorageService fileStorageService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private Demo1Service demo1Service;
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public String uploadPicture(MultipartFile multipartFile) {
|
|
public String uploadPicture(MultipartFile multipartFile) {
|
|
// 1 检查参数
|
|
// 1 检查参数
|
|
@@ -40,4 +44,9 @@ public class WmMaterialServiceImpl implements WmMaterialService {
|
|
}
|
|
}
|
|
return "上传成功:" + fileId;
|
|
return "上传成功:" + fileId;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public String getList() {
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
}
|
|
}
|