Commit 4576801e7543fcb86ab50fc260dd1488e067f173
1 parent
e1f64eaa
1476 fix: 修复system模块岗位批量删除接口
Showing
1 changed file
with
8 additions
and
0 deletions
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/PostController.java
| ... | ... | @@ -64,6 +64,14 @@ public class PostController { |
| 64 | 64 | return success(true); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | + @DeleteMapping("delete-list") | |
| 68 | + @Operation(summary = "批量删除岗位") | |
| 69 | + @PreAuthorize("@ss.hasPermission('system:post:delete')") | |
| 70 | + public CommonResult<Boolean> deletePostList(@RequestParam("ids") List<Long> ids) { | |
| 71 | + postService.deletePostList(ids); | |
| 72 | + return success(true); | |
| 73 | + } | |
| 74 | + | |
| 67 | 75 | @GetMapping(value = "/get") |
| 68 | 76 | @Operation(summary = "获得岗位信息") |
| 69 | 77 | @Parameter(name = "id", description = "岗位编号", required = true, example = "1024") | ... | ... |