wu
2024-03-18 1a93bcc9c4626939b755abcc9b62432f27173398
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
package com.example.springboot.service;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.entity.MenuList;
import com.example.springboot.entity.vo.MenuListVo;
 
import java.util.List;
 
public interface MenuListService extends IService<MenuList> {
    /**
     * 分页查询菜单
     *
     * @param menuListVO
     * @return
     */
    IPage<MenuList> selectPage(MenuListVo menuListVO);
 
    /**
     * 根据角色返回菜单,树状结构
     *
     * @param roleId
     * @return
     */
    List<MenuList> selectList(Long roleId);
 
    /**
     * 查询下级菜单,不包括自己
     *
     * @param parentId
     * @return
     */
    List<MenuList> selectByParentId(Long parentId, List<Long> ids);
}