| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 分组列表功能 |
| | | * |
| | |
| | | return ResponseUtil.success(poleGroupService.updateGroup(groupId, param)); |
| | | } |
| | | |
| | | @PostMapping("/delete/{groupId}") |
| | | public ResponseVO<Object> delGroup(@PathVariable Long groupId) { |
| | | @PostMapping("/delete") |
| | | public ResponseVO<Object> delGroup(@RequestBody List<Long> groupIds) { |
| | | if (!permissionConfig.check(MenuEnum.GROUP_DELETE.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | return ResponseUtil.success(poleGroupService.deleteGroup(groupId)); |
| | | return ResponseUtil.success(poleGroupService.deleteGroup(groupIds)); |
| | | } |
| | | |
| | | @GetMapping("/list") |