郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package com.gkhy.safePlatform.account.service.baseService;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.gkhy.safePlatform.account.entity.user.MenuInfo;
import com.gkhy.safePlatform.account.entity.user.MenuInfoDO;
 
import java.util.List;
 
public interface MenuInfoService extends IService<MenuInfo> {
 
    /**
    * @Description: 查询所有启用的菜单
    */
    List<MenuInfoDO> getAllMenu();
 
 
    /**
    * @Description: 保存menu
    */
    void saveMenu(MenuInfo menu);
 
 
    /**
    * @Description: 根据id更新菜单
    */
    void updateMenu(MenuInfo menu);
 
 
    /**
    * @Description: 根据 id 获取 menu 一部分属性
    */
    MenuInfo getMenuById(Long id);
 
 
    /**
    * @Description: TODO
    */
    Long countByParentId(Long parentMenuId);
 
    /**
    * @Description: 根据 name 获取 menuInfo
    */
    MenuInfo getMenuInfoByName(String name);
 
    /**
     * @Description: 根据 path 获取 menuInfo
     */
    MenuInfo getMenuInfoByPath(String path);
 
    /**
     * @Description: 根据 component 获取 不为根目录的 menuInfo
     */
    MenuInfo getMenuInfoByComponent(String component);
}