@Service public class MenuService extends Object
| 构造器和说明 |
|---|
MenuService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
formatByApp(List<Map<String,Object>> menuList)
根据应用格式化菜单列表
|
Map<String,Map<String,String>> |
list()
获取菜单列表。
|
List<Map<String,Object>> |
list(long userId)
根据用户获取菜单列表
|
List<Map<String,Object>> |
listByApp(String uuid)
根据应用获取菜单列表
|
List<Map<String,Object>> |
tree(long userId)
根据用户获取菜单并转成树型
|
@Comment(value="\u6839\u636e\u5e94\u7528\u83b7\u53d6\u83dc\u5355\u5217\u8868") public List<Map<String,Object>> listByApp(String uuid) throws SQLException
uuid - 应用UUIDSQLExceptionpublic Map<String,Map<String,String>> list()
public void formatByApp(List<Map<String,Object>> menuList) throws SQLException
menuList - 菜单列表,每个菜单项是一个包含应用UUID和模块UUID的MapSQLException - 如果数据库操作出现异常则抛出此异常@Comment(value="\u6839\u636e\u7528\u6237\u83b7\u53d6\u83dc\u5355\u5e76\u8f6c\u6210\u6811\u578b") public List<Map<String,Object>> tree(long userId) throws SQLException
userId - 用户IDSQLException@Comment(value="\u6839\u636e\u7528\u6237\u83b7\u53d6\u83dc\u5355\u5217\u8868") public List<Map<String,Object>> list(long userId) throws SQLException
userId - 用户IDSQLExceptionCopyright © 2025. All rights reserved.