OpenAuth.Net/OpenAuth.Domain/Interface/IOrgRepository.cs
2017-10-11 16:19:34 +08:00

24 lines
595 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenAuth.Domain.Interface
{
public interface IOrgRepository :IRepository<Org>
{
IEnumerable<Org> LoadOrgs();
IEnumerable<Org> LoadByUser(string userId);
IEnumerable<Org> LoadByRole(string roleId);
/// <summary>
/// 获取包括自己在内的全部子部门
/// </summary>
/// <param name="orgId">部门ID</param>
IEnumerable<Org> GetSubOrgs(string orgId);
}
}