2016-01-05 17:14:10 +08:00
|
|
|
|
using System;
|
2015-10-26 21:58:12 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace OpenAuth.Domain.Interface
|
|
|
|
|
{
|
2015-10-26 23:55:02 +08:00
|
|
|
|
public interface IOrgRepository :IRepository<Org>
|
2015-10-26 21:58:12 +08:00
|
|
|
|
{
|
|
|
|
|
IEnumerable<Org> LoadOrgs();
|
2015-11-13 21:33:53 +08:00
|
|
|
|
|
2017-10-11 16:19:34 +08:00
|
|
|
|
IEnumerable<Org> LoadByUser(string userId);
|
2016-01-08 12:53:48 +08:00
|
|
|
|
|
2017-10-11 16:19:34 +08:00
|
|
|
|
IEnumerable<Org> LoadByRole(string roleId);
|
2016-09-04 23:34:16 +08:00
|
|
|
|
|
2016-01-08 12:53:48 +08:00
|
|
|
|
/// <summary>
|
2016-09-05 20:07:10 +08:00
|
|
|
|
/// 获取包括自己在内的全部子部门
|
2016-01-08 12:53:48 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="orgId">部门ID</param>
|
2017-10-11 16:19:34 +08:00
|
|
|
|
IEnumerable<Org> GetSubOrgs(string orgId);
|
2015-10-26 21:58:12 +08:00
|
|
|
|
}
|
|
|
|
|
}
|