From b717124538f5f68d158f10e37e23c7e0327563f6 Mon Sep 17 00:00:00 2001 From: gtsxc <3272660260@qq.com> Date: 星期六, 02 十一月 2024 17:04:08 +0800 Subject: [PATCH] # --- zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/RoleController.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/RoleController.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/RoleController.java index 44b02fb..c96dc48 100644 --- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/RoleController.java +++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/RoleController.java @@ -162,4 +162,14 @@ return R.ok("鍒嗛厤鎴愬姛"); } + @PreAuthorize("hasAuthority('system:role:list')") + @GetMapping("/role/list/name/{ids}") + public R listName(@PathVariable Long[] ids) { + List<String> nameList = new ArrayList<>(); + for (Long id : ids) { + nameList.add(roleService.getById(id).getName()); + } + return R.ok().add(nameList); + } + } -- Gitblit v1.9.1