OpenAuth.Net/OpenAuth.Domain/Interface/IRoleRepository.cs

19 lines
557 B
C#
Raw Normal View History

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
}
}