ISysDeptService.cs 894 B

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