package com.dsh.guns.modular.system.service; import com.baomidou.mybatisplus.extension.service.IService; import com.dsh.course.model.node.MenuNode; import com.dsh.course.model.node.ZTreeNode; import com.dsh.guns.modular.system.model.Menu; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; /** * 菜单服务 * * @author fengshuonan * @date 2017-05-05 22:19 */ public interface IMenuService extends IService { /** * 删除菜单 * * @author stylefeng * @Date 2017/5/5 22:20 */ void delMenu(Long menuId); /** * 删除菜单包含所有子菜单 * * @author stylefeng * @Date 2017/6/13 22:02 */ void delMenuContainSubMenus(Long menuId); /** * 根据条件查询菜单 * * @return * @date 2017年2月12日 下午9:14:34 */ List> selectMenus(@Param("condition") String condition, @Param("level") String level); /** * 根据条件查询菜单 * * @return * @date 2017年2月12日 下午9:14:34 */ List getMenuIdsByRoleId(@Param("roleId") Integer roleId); /** * 获取菜单列表树 * * @return * @date 2017年2月19日 下午1:33:51 */ List menuTreeList(); /** * 获取菜单列表树 * * @return * @date 2017年2月19日 下午1:33:51 */ List menuTreeListByMenuIds(List menuIds); /** * 删除menu关联的relation * * @param menuId * @return * @date 2017年2月19日 下午4:10:59 */ int deleteRelationByMenu(Long menuId); /** * 获取资源url通过角色id * * @param roleId * @return * @date 2017年2月19日 下午7:12:38 */ List getResUrlsByRoleId(Integer roleId); /** * 根据角色获取菜单 * * @param roleIds * @return * @date 2017年2月19日 下午10:35:40 */ List getMenusByRoleIds(List roleIds); }