diff --git a/Yi.Framework/Yi.Framework.Interface/IMenuService.cs b/Yi.Framework/Yi.Framework.Interface/IMenuService.cs index fbafc1ea..f4ceaba1 100644 --- a/Yi.Framework/Yi.Framework.Interface/IMenuService.cs +++ b/Yi.Framework/Yi.Framework.Interface/IMenuService.cs @@ -11,5 +11,34 @@ namespace Yi.Framework.Interface { Task DelListByUpdateAsync(List _ids); Task> GetAllEntitiesTrueAsync(); + + /// + /// 通过menu得到mould(1对1关系) + /// + /// + /// + Task GetMouldByMenu(menu _menu); + + /// + /// 通过menu得到他自己与mould(注意:确保返回的menu里含有menu) + /// + /// + /// + Task GetMenuMouldByMenu(menu _menu); + + /// + /// 得到该菜单下所有的子类 + /// + /// + /// + Task> GetChildrenByMenu(menu _menu); + + /// + /// 给菜单设置接口(1对1关系) + /// + /// + /// + /// + Task SetMouldByMenu(int mouldId,int menuId); } } diff --git a/Yi.Framework/Yi.Framework.Interface/IMouldService.cs b/Yi.Framework/Yi.Framework.Interface/IMouldService.cs index c1cf9837..18793441 100644 --- a/Yi.Framework/Yi.Framework.Interface/IMouldService.cs +++ b/Yi.Framework/Yi.Framework.Interface/IMouldService.cs @@ -11,5 +11,12 @@ namespace Yi.Framework.Interface { Task DelListByUpdateAsync(List _ids); Task> GetAllEntitiesTrueAsync(); + + /// + /// 得到该接口属于哪个菜单的 + /// + /// + /// + Task GetMenuByMould(mould _mould); } } diff --git a/Yi.Framework/Yi.Framework.Interface/IRoleService.cs b/Yi.Framework/Yi.Framework.Interface/IRoleService.cs index 44ed4b0a..337278de 100644 --- a/Yi.Framework/Yi.Framework.Interface/IRoleService.cs +++ b/Yi.Framework/Yi.Framework.Interface/IRoleService.cs @@ -11,5 +11,27 @@ namespace Yi.Framework.Interface { Task DelListByUpdateAsync(List _ids); Task> GetAllEntitiesTrueAsync(); + + /// + /// 获取该角色的所有菜单 + /// + /// + /// + Task> GetMenusByRole(role _role); + + /// + /// 获取含有该角色的所有用户 + /// + /// + /// + Task> GetUsersByRole(role _role); + + /// + /// 给单个角色设置多个菜单 + /// + /// + /// + /// + Task SetMenusByRolesId(List menuIds, int roleId); } }