2016-09-02 18:05:17 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2015-12-19 21:48:17 +08:00
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace OpenAuth.Domain.Interface
|
|
|
|
|
{
|
|
|
|
|
public interface IResourceRepository :IRepository<Resource>
|
|
|
|
|
{
|
|
|
|
|
IEnumerable<Resource> LoadResources(int pageindex, int pagesize);
|
|
|
|
|
|
2016-09-02 18:05:17 +08:00
|
|
|
|
IEnumerable<Resource> LoadInOrgs(params Guid[] orgId);
|
|
|
|
|
int GetResourceCntInOrgs(params Guid[] orgIds);
|
|
|
|
|
IEnumerable<Resource> LoadInOrgs(int pageindex, int pagesize, params Guid[] orgIds);
|
2015-12-19 21:48:17 +08:00
|
|
|
|
|
2016-09-02 18:05:17 +08:00
|
|
|
|
void Delete(Guid id);
|
2015-12-19 21:48:17 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|