using System.Collections.Generic; using ZR.Model.System; using ZR.Model.System.Vo; using ZR.Repository; namespace ZR.Service.System.IService { public interface ISysDeptService : IBaseService { List GetSysDepts(SysDept 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); } }