wu
2023-12-01 4f9f6a63ecdd3406c5e1f4db86232717824f469b
springboot-vue3/src/main/java/com/example/springboot/service/MenuListService.java
New file
@@ -0,0 +1,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);
}