Commit b45be4dc by huluobin

文件上传

parent 87597fa9
...@@ -23,7 +23,7 @@ public class FileController { ...@@ -23,7 +23,7 @@ public class FileController {
@ApiOperation(value = "图片上传") @ApiOperation(value = "图片上传")
@PostMapping("/customer/xcx/upload") @PostMapping("/customer/xcx/upload")
public JsonResult<String> upload(MultipartFile multipartFile) throws Exception { public JsonResult<String> upload(MultipartFile file) throws Exception {
log.info("图片上传"); log.info("图片上传");
String imgUrl = fileService.saveImage(multipartFile); String imgUrl = fileService.saveImage(multipartFile);
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