31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using ZR.Model.System;
|
|
using ZR.ServiceCore.Model;
|
|
using ZR.ServiceCore.Model.Dto;
|
|
using ZR.ServiceCore.Model.Vo;
|
|
|
|
namespace ZR.Service.System.IService
|
|
{
|
|
public interface ISysDeptService : IBaseService<SysDept>
|
|
{
|
|
List<SysDept> GetSysDepts(SysDeptQueryDto dept);
|
|
string CheckDeptNameUnique(SysDept dept);
|
|
int InsertDept(SysDept dept);
|
|
int UpdateDept(SysDept dept);
|
|
void UpdateDeptChildren(long deptId, string newAncestors, string oldAncestors);
|
|
List<SysDept> GetChildrenDepts(List<SysDept> depts, long deptId);
|
|
List<SysDept> BuildDeptTree(List<SysDept> depts);
|
|
List<TreeSelectVo> BuildDeptTreeSelect(List<SysDept> depts);
|
|
List<SysRoleDept> SelectRoleDeptByRoleId(long roleId);
|
|
|
|
List<long> SelectRoleDepts(long roleId);
|
|
bool DeleteRoleDeptByRoleId(long roleId);
|
|
int InsertRoleDepts(SysRole role);
|
|
}
|
|
|
|
public interface ISysRoleDeptService : IBaseService<SysRoleDept>
|
|
{
|
|
List<SysRoleDept> SelectRoleDeptByRoleId(long roleId);
|
|
}
|
|
}
|