ycl-common/src/main/java/com/ycl/controller/FileController.java
@@ -10,6 +10,8 @@ import org.springframework.web.bind.annotation.RestController; import org.springframework.web.multipart.MultipartFile; import java.io.UnsupportedEncodingException; @RestController @Api(tags = "文件上传") @RequestMapping("/file") @@ -65,6 +67,7 @@ @PostMapping("media/delete") public CommonResult<Boolean> deleteImages(String fileUrl) { boolean flag = ossService.deleteImages(fileUrl); if (flag) { return CommonResult.success(true, "删除成功"); }