using Dto; using Model; using Vo; namespace Services { public interface ISysMenuService : IBaseService { //List SelectMenuList(long userId); List SelectMenuList(MenuQueryDto menu, long userId); List SelectTreeMenuList(MenuQueryDto menu, long userId); SysMenu GetMenuByMenuId(int menuId); List GetMenusByMenuId(int menuId, long userId); long AddMenu(SysMenu menu); long EditMenu(SysMenu menu); int DeleteMenuById(int menuId); string CheckMenuNameUnique(SysMenu menu); int ChangeSortMenu(MenuDto menuDto); bool HasChildByMenuId(long menuId); List SelectMenuTreeByUserId(long userId); //List SelectMenuPermsListByUserId(long userId); List SelectMenuPermsByUserId(long userId); //bool CheckMenuExistRole(long menuId); List BuildMenus(List menus); List BuildMenuTreeSelect(List menus); List BuildLeftMenuTreeSelect(List menus); List SelectTreeMenuListByRoles(MenuQueryDto menu, List roles); List SelectRoleMenuListByRole(MenuQueryDto menu, int roleId); } /// /// 角色菜单 /// public interface ISysRoleMenuService : IBaseService { bool CheckMenuExistRole(long menuId); /// /// 根据角色获取菜单id /// /// /// List SelectRoleMenuByRoleId(long roleId); /// /// 根据用户所有角色获取菜单 /// /// /// List SelectRoleMenuByRoleIds(long[] roleIds); /// /// 批量插入用户菜单 /// /// /// int AddRoleMenu(List sysRoleMenus); /// /// 删除角色与菜单关联 /// /// /// int DeleteRoleMenuByRoleId(long roleId); /// /// 删除角色指定菜单 /// /// /// /// bool DeleteRoleMenuByRoleIdMenuIds(long roleId, long[] menuIds); } }