using Dto; using Model; using Vo; namespace Services { public interface ISysDeptService : IBaseService { List GetSysDepts(SysDeptQueryDto dept); string CheckDeptNameUnique(SysDept dept); int InsertDept(SysDept dept); int UpdateDept(SysDept dept); void UpdateDeptChildren(long deptId, string newAncestors, string oldAncestors); List GetChildrenDepts(List depts, long deptId); List BuildDeptTree(List depts); List BuildDeptTreeSelect(List depts); List SelectRoleDepts(long roleId); bool DeleteRoleDeptByRoleId(long roleId); int InsertRoleDepts(SysRole role); } public interface ISysRoleDeptService : IBaseService { List SelectRoleDeptByRoleId(long roleId); } }