|
|
@@ -1,6 +1,6 @@
|
|
|
package com.seecoder.BlueWhale.controller;
|
|
|
|
|
|
-import com.seecoder.BlueWhale.service.ToolService;
|
|
|
+import com.seecoder.BlueWhale.service.ImageService;
|
|
|
import com.seecoder.BlueWhale.vo.ResultVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
@@ -13,10 +13,10 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
@RequestMapping("/api/images")
|
|
|
public class ImageController {
|
|
|
@Autowired
|
|
|
- ToolService toolService;
|
|
|
+ ImageService imageService;
|
|
|
|
|
|
@PostMapping
|
|
|
public ResultVO<String> upload(@RequestParam MultipartFile file){
|
|
|
- return ResultVO.buildSuccess(toolService.upload(file));
|
|
|
+ return ResultVO.buildSuccess(imageService.upload(file));
|
|
|
}
|
|
|
}
|