添加用户服务接口
This commit is contained in:
15
Yi.Framework/Yi.Framework.Interface/IMenuService.cs
Normal file
15
Yi.Framework/Yi.Framework.Interface/IMenuService.cs
Normal file
@@ -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<menu>
|
||||||
|
{
|
||||||
|
Task<bool> DelListByUpdateAsync(List<int> _ids);
|
||||||
|
Task<IEnumerable<menu>> GetAllEntitiesTrueAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
15
Yi.Framework/Yi.Framework.Interface/IMouldService.cs
Normal file
15
Yi.Framework/Yi.Framework.Interface/IMouldService.cs
Normal file
@@ -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<mould>
|
||||||
|
{
|
||||||
|
Task<bool> DelListByUpdateAsync(List<int> _ids);
|
||||||
|
Task<IEnumerable<mould>> GetAllEntitiesTrueAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,5 +11,38 @@ namespace Yi.Framework.Interface
|
|||||||
{
|
{
|
||||||
Task<bool> DelListByUpdateAsync(List<int> _ids);
|
Task<bool> DelListByUpdateAsync(List<int> _ids);
|
||||||
Task<IEnumerable<user>> GetAllEntitiesTrueAsync();
|
Task<IEnumerable<user>> GetAllEntitiesTrueAsync();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 登录,传入_user需包含用户名与密码
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
Task<bool> Login(user _user);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 注册,需要检测是否用户名重复
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
Task<bool> Register(user _user);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 得到该用户拥有哪些角色
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="user"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
Task<List<role>> GetRolesByUser(user _user);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 得到该用户拥有哪些菜单(注意:每一个菜单需要绑定好对应mould)
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="_user"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
Task<List<menu>> GetMenusByUser(user _user);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 得到该用户拥有哪些mould
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="_user"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
Task<List<mould>> GetMouldByUser(user _user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user