diff --git a/Yi.Framework/Yi.Framework.Interface/IMenuService.cs b/Yi.Framework/Yi.Framework.Interface/IMenuService.cs new file mode 100644 index 00000000..fbafc1ea --- /dev/null +++ b/Yi.Framework/Yi.Framework.Interface/IMenuService.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Yi.Framework.Model.Models; + +namespace Yi.Framework.Interface +{ + public interface IMenuService:IBaseService + { + Task DelListByUpdateAsync(List _ids); + Task> GetAllEntitiesTrueAsync(); + } +} diff --git a/Yi.Framework/Yi.Framework.Interface/IMouldService.cs b/Yi.Framework/Yi.Framework.Interface/IMouldService.cs new file mode 100644 index 00000000..c1cf9837 --- /dev/null +++ b/Yi.Framework/Yi.Framework.Interface/IMouldService.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Yi.Framework.Model.Models; + +namespace Yi.Framework.Interface +{ + public interface IMouldService : IBaseService + { + Task DelListByUpdateAsync(List _ids); + Task> GetAllEntitiesTrueAsync(); + } +} diff --git a/Yi.Framework/Yi.Framework.Interface/IUserService.cs b/Yi.Framework/Yi.Framework.Interface/IUserService.cs index d39e75d5..4a6c58af 100644 --- a/Yi.Framework/Yi.Framework.Interface/IUserService.cs +++ b/Yi.Framework/Yi.Framework.Interface/IUserService.cs @@ -11,5 +11,38 @@ namespace Yi.Framework.Interface { Task DelListByUpdateAsync(List _ids); Task> GetAllEntitiesTrueAsync(); + + /// + /// 登录,传入_user需包含用户名与密码 + /// + /// + Task Login(user _user); + + /// + /// 注册,需要检测是否用户名重复 + /// + /// + Task Register(user _user); + + /// + /// 得到该用户拥有哪些角色 + /// + /// + /// + Task> GetRolesByUser(user _user); + + /// + /// 得到该用户拥有哪些菜单(注意:每一个菜单需要绑定好对应mould) + /// + /// + /// + Task> GetMenusByUser(user _user); + + /// + /// 得到该用户拥有哪些mould + /// + /// + /// + Task> GetMouldByUser(user _user); } }