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);
|
|
|
|
|
|
2017-10-11 16:19:34 +08:00
|
|
|
|
int GetRoleCntInOrgs(params string[] orgIds);
|
|
|
|
|
IEnumerable<Role> LoadInOrgs(int pageindex, int pagesize, params string[] orgIds);
|
|
|
|
|
IEnumerable<Role> LoadInOrgs(params string[] orgId);
|
|
|
|
|
IEnumerable<Role> LoadForUser(string userId);
|
2015-11-19 21:49:39 +08:00
|
|
|
|
|
2017-10-11 16:19:34 +08:00
|
|
|
|
void Delete(string id);
|
2015-11-19 21:49:39 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|