ISysDeptService.cs 1.0 KB

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