mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-12-26 22:25:39 +08:00
添加资源中心,为数据字段授权、第三方网站授权做准备
This commit is contained in:
17
OpenAuth.Domain/Interface/IResourceRepository.cs
Normal file
17
OpenAuth.Domain/Interface/IResourceRepository.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace OpenAuth.Domain.Interface
|
||||
{
|
||||
public interface IResourceRepository :IRepository<Resource>
|
||||
{
|
||||
IEnumerable<Resource> LoadResources(int pageindex, int pagesize);
|
||||
|
||||
IEnumerable<Resource> LoadInOrgs(params int[] orgId);
|
||||
int GetResourceCntInOrgs(params int[] orgIds);
|
||||
IEnumerable<Resource> LoadInOrgs(int pageindex, int pagesize, params int[] orgIds);
|
||||
|
||||
void Delete(int id);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -50,6 +50,7 @@
|
||||
<Compile Include="Interface\IModuleRepository.cs" />
|
||||
<Compile Include="Interface\IOrgRepository.cs" />
|
||||
<Compile Include="Interface\IRepository.cs" />
|
||||
<Compile Include="Interface\IResourceRepository.cs" />
|
||||
<Compile Include="Interface\IRoleRepository.cs" />
|
||||
<Compile Include="Interface\IRelevanceRepository.cs" />
|
||||
<Compile Include="Interface\IUserRepository.cs" />
|
||||
|
||||
Reference in New Issue
Block a user