New file |
| | |
| | | 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); |
| | | } |