IDepartmentService.cs 812 B

12345678910111213141516171819202122232425
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using GxPress.Request.Department;
  4. using GxPress.Result.Department;
  5. namespace GxPress.Service.Interface.Department
  6. {
  7. public interface IDepartmentService : IService
  8. {
  9. /// <summary>
  10. /// 删除部门包括下面的子集和用户
  11. /// </summary>
  12. /// <param name="id"></param>
  13. /// <returns></returns>
  14. Task<bool> DeleteAsync(int id);
  15. /// <summary>
  16. /// 根据部门ID获取成员以及下级部门
  17. /// </summary>
  18. /// <param name="request"></param>
  19. /// <returns></returns>
  20. Task<DepartmentUserResult> GetDepartmentUserResultAsync(DepartmentUserRequest request);
  21. Task<IEnumerable<Entity.Department>> GetUserInDepartmentAsync(int userId);
  22. }
  23. }