feat(img-files): 添加图片文件删除接口
- 新增 getDelete 接口用于删除单个图片文件
- 新增 getIds 接口用于批量删除图片文件
(cherry picked from commit 8ff5a19654)
dev_visual_page
parent
35c9818f2c
commit
816d82f23e
|
|
@ -81,6 +81,19 @@ public class ImgFilesController {
|
|||
imgFilesService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
@ApiOperation("删除")
|
||||
@GetMapping("/getDelete")
|
||||
public Response getDelete(@RequestParam String filePath) {
|
||||
imgFilesService.removeFile(filePath);
|
||||
return Response.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@GetMapping("/getIds")
|
||||
public Response getIds(@RequestParam Long[] ids) {
|
||||
imgFilesService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
|
|
|
|||
Loading…
Reference in New Issue