Commit 5b3b0904 by huluobin

文件上传

parent b45be4dc
...@@ -25,7 +25,7 @@ public class FileController { ...@@ -25,7 +25,7 @@ public class FileController {
@PostMapping("/customer/xcx/upload") @PostMapping("/customer/xcx/upload")
public JsonResult<String> upload(MultipartFile file) throws Exception { public JsonResult<String> upload(MultipartFile file) throws Exception {
log.info("图片上传"); log.info("图片上传");
String imgUrl = fileService.saveImage(multipartFile); String imgUrl = fileService.saveImage(file);
return JsonResult.success(imgUrl); return JsonResult.success(imgUrl);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment