From cccba4dc6d8e0a941aa82b8a2bd5fdd1fcc713be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com> Date: Tue, 12 Oct 2021 13:56:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Yi.Framework.Interface/IMenuService.cs | 15 +++++++++ .../Yi.Framework.Interface/IMouldService.cs | 15 +++++++++ .../Yi.Framework.Interface/IUserService.cs | 33 +++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 Yi.Framework/Yi.Framework.Interface/IMenuService.cs create mode 100644 Yi.Framework/Yi.Framework.Interface/IMouldService.cs 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); } }