mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 17:38:01 +08:00
24 lines
595 B
C#
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);
|
|
}
|
|
}
|