From b8a0affd03b5fa9fa33cd6f870e90394c2df86c7 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 06 一月 2025 13:31:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/service/permission/PermissionService.java |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/service/permission/PermissionService.java b/iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/service/permission/PermissionService.java
index 6bcb967..a7a5e1b 100644
--- a/iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/service/permission/PermissionService.java
+++ b/iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/service/permission/PermissionService.java
@@ -44,6 +44,14 @@
     void assignRoleMenu(Long roleId, Set<Long> menuIds);
 
     /**
+     * 设置角色应用菜单
+     *
+     * @param roleId  角色编号
+     * @param menuIds 菜单编号集合
+     */
+//    void assignRoleAppMenu(Long roleId, Set<Long> menuIds);
+
+    /**
      * 处理角色删除时,删除关联授权数据
      *
      * @param roleId 角色编号
@@ -68,6 +76,16 @@
     }
 
     /**
+     * 获得角色拥有的应用菜单编号集合
+     *
+     * @param roleId 角色编号
+     * @return 菜单编号集合
+     */
+    default Set<Long> getRoleAppMenuListByRoleId(Long roleId) {
+        return getRoleAppMenuListByRoleId(singleton(roleId));
+    }
+
+    /**
      * 获得角色们拥有的菜单编号集合
      *
      * @param roleIds 角色编号数组
@@ -76,6 +94,14 @@
     Set<Long> getRoleMenuListByRoleId(Collection<Long> roleIds);
 
     /**
+     * 获得角色们拥有的应用菜单编号集合
+     *
+     * @param roleIds 角色编号数组
+     * @return 菜单编号集合
+     */
+    Set<Long> getRoleAppMenuListByRoleId(Collection<Long> roleIds);
+
+    /**
      * 获得拥有指定菜单的角色编号数组,从缓存中获取
      *
      * @param menuId 菜单编号

--
Gitblit v1.9.3