using System.Collections.Generic; using ZR.Model.System; using ZR.Model.System.Dto; using ZR.Model.System.Vo; namespace ZR.ServiceCore.Services { public interface ISysDeptService : IBaseService { List GetList(SysDeptQueryDto dept); 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 SelectRoleDeptByRoleId(long roleId); List SelectRoleDepts(long roleId); bool DeleteRoleDeptByRoleId(long roleId); int InsertRoleDepts(SysRole role); } public interface ISysRoleDeptService : IBaseService { List SelectRoleDeptByRoleId(long roleId); } }