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 { /** * @Description: 查询所有启用的菜单 */ List 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); }