ISysDeptService.cs 1.1 KB

123456789101112131415161718192021222324252627282930
  1. using System.Collections.Generic;
  2. using ZR.Model.System;
  3. using ZR.Model.System.Dto;
  4. using ZR.Model.System.Vo;
  5. namespace ZR.ServiceCore.Services
  6. {
  7. public interface ISysDeptService : IBaseService<SysDept>
  8. {
  9. List<SysDeptDto> GetList(SysDeptQueryDto dept);
  10. List<SysDept> GetSysDepts(SysDeptQueryDto dept);
  11. string CheckDeptNameUnique(SysDept dept);
  12. int InsertDept(SysDept dept);
  13. int UpdateDept(SysDept dept);
  14. void UpdateDeptChildren(long deptId, string newAncestors, string oldAncestors);
  15. List<SysDept> GetChildrenDepts(List<SysDept> depts, long deptId);
  16. List<SysDept> BuildDeptTree(List<SysDept> depts);
  17. List<TreeSelectVo> BuildDeptTreeSelect(List<SysDept> depts);
  18. List<SysRoleDept> SelectRoleDeptByRoleId(long roleId);
  19. List<long> SelectRoleDepts(long roleId);
  20. bool DeleteRoleDeptByRoleId(long roleId);
  21. int InsertRoleDepts(SysRole role);
  22. }
  23. public interface ISysRoleDeptService : IBaseService<SysRoleDept>
  24. {
  25. List<SysRoleDept> SelectRoleDeptByRoleId(long roleId);
  26. }
  27. }