2016-09-02 18:05:17 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2015-11-19 21:49:39 +08:00
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace OpenAuth.Domain.Interface
|
|
|
|
|
{
|
|
|
|
|
public interface IRoleRepository :IRepository<Role>
|
|
|
|
|
{
|
|
|
|
|
IEnumerable<Role> LoadRoles(int pageindex, int pagesize);
|
|
|
|
|
|
2016-09-02 18:05:17 +08:00
|
|
|
|
int GetRoleCntInOrgs(params Guid[] orgIds);
|
|
|
|
|
IEnumerable<Role> LoadInOrgs(int pageindex, int pagesize, params Guid[] orgIds);
|
2016-09-05 20:07:10 +08:00
|
|
|
|
IEnumerable<Role> LoadInOrgs(params Guid[] orgId);
|
|
|
|
|
IEnumerable<Role> LoadForUser(Guid userId);
|
2015-11-19 21:49:39 +08:00
|
|
|
|
|
2016-09-02 18:05:17 +08:00
|
|
|
|
void Delete(Guid id);
|
2015-11-19 21:49:39 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|