using System; using System.Collections.Generic; using System.Text; using ARW.Model.System; using ARW.Model.System.Vo; namespace ARW.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); } }