添加导航属性
This commit is contained in:
16
Yi.Framework.Net6/Yi.Framework.Interface/IRoleService.cs
Normal file
16
Yi.Framework.Net6/Yi.Framework.Interface/IRoleService.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Model.Models;
|
||||
using Yi.Framework.Repository;
|
||||
|
||||
namespace Yi.Framework.Interface
|
||||
{
|
||||
public partial interface IRoleService
|
||||
{
|
||||
/// <summary>
|
||||
/// DbTest
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Task<List<RoleEntity>> DbTest();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Yi.Framework.Model.Models;
|
||||
using Yi.Framework.Repository;
|
||||
|
||||
namespace Yi.Framework.Interface
|
||||
{
|
||||
public partial interface IRoleService:IBaseService<RoleEntity>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Yi.Framework.Model.Models;
|
||||
using Yi.Framework.Repository;
|
||||
|
||||
namespace Yi.Framework.Interface
|
||||
{
|
||||
public partial interface IUserRoleService:IBaseService<UserRoleEntity>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -30,5 +30,12 @@ namespace Yi.Framework.Interface
|
||||
/// <param name="userAction"></param>
|
||||
/// <returns></returns>
|
||||
public Task<bool> Register(UserEntity userEntity, Action<UserEntity> userAction = null);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 导航属性关联角色
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Task<List<UserEntity>> GetListInRole();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user