This commit is contained in:
qianhao.xu
2024-12-03 09:25:16 +08:00
parent 96e44cfc4e
commit 586d2e60dc
661 changed files with 996 additions and 28248 deletions

View File

@@ -0,0 +1,30 @@
using System.Collections.Generic;
using DOAN.Model.System;
using DOAN.Model.System.Dto;
using DOAN.Model.System.Vo;
namespace DOAN.ServiceCore.Services
{
public interface ISysDeptService : IBaseService<SysDept>
{
List<SysDeptDto> GetList(SysDeptQueryDto dept);
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);
}
}