mirror of https://github.com/elunez/eladmin
[代码完善](v2.5): v2.5 beta 角色编辑菜单优化
parent
6bb8b9ce3e
commit
ed7bfa32a2
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue