[代码完善](v2.5): v2.5 beta 角色编辑菜单优化

pull/372/head
ZhengJie 2020-05-20 17:43:24 +08:00
parent 6bb8b9ce3e
commit ed7bfa32a2
2 changed files with 4 additions and 4 deletions

View File

@ -67,9 +67,9 @@ public class DeptController {
@Log("查询部门")
@ApiOperation("查询部门:根据ID获取同级与上级数据")
@GetMapping("/superior")
@PostMapping("/superior")
@PreAuthorize("@el.check('user:list','dept:list')")
public ResponseEntity<Object> getSuperior(@RequestParam List<Long> ids) {
public ResponseEntity<Object> getSuperior(@RequestBody List<Long> ids) {
Set<DeptDto> deptDtos = new LinkedHashSet<>();
for (Long id : ids) {
DeptDto deptDto = deptService.findById(id);

View File

@ -85,9 +85,9 @@ public class MenuController {
@Log("查询菜单")
@ApiOperation("查询菜单:根据ID获取同级与上级数据")
@GetMapping("/superior")
@PostMapping("/superior")
@PreAuthorize("@el.check('menu:list')")
public ResponseEntity<Object> getSuperior(@RequestParam(required = false) List<Long> ids) {
public ResponseEntity<Object> getSuperior(@RequestBody List<Long> ids) {
Set<MenuDto> menuDtos = new LinkedHashSet<>();
if(CollectionUtil.isNotEmpty(ids)){
for (Long id : ids) {