using System.Collections.Generic;
using System.Threading.Tasks;
using Datory;
using GxPress.Request.Department;
namespace GxPress.Repository.Interface.DepartmentUser
{
public interface IDepartmentUserRepository : IRepository
{
///
/// 根据部门ID获取用户
///
///
///
Task> GetUserIdsAsync(int departmentId);
///
/// 添加部门成员
///
///
///
Task AddDepartmentUserAsync(DepartmentUserInRequest request);
///
/// 添加部门成员
///
///
///
Task AddDepartmentUserAsync(IEnumerable departmentIds, int userId);
///
/// 根据用户D获取部门ID
///
///
///
Task> GetDepartmentIdsAsync(int userId);
///
/// 获取部门下面的所有用户
///
///
///
Task> GetUserIdsAsync();
///
/// 判断是否有部门
///
///
///
Task IsExistsAsync(int userId);
///
/// 根据部门ID集合获取用户
///
///
///
Task> GetUserIdsAsync(IEnumerable departmentIds);
///
/// 根据部门ID获取部门下面的所有用户
///
///
///
Task> GetUserIdsByDepartmentIdsAsync(IEnumerable departmentIds);
///
/// 根据用户id获取所在部门
///
///
///
Task> GetDepartmentUsersByUserIdsAsync(IEnumerable userIds);
///
/// 根据用户ID获取部门下面的用户
///
///
///
Task> GetUserIdsByUserIdAsync(int userId);
}
}