30 lines
1.0 KiB
C#
Raw Normal View History

2024-05-16 13:30:30 +08:00
using System.Collections.Generic;
2024-07-01 16:04:10 +08:00
using DOAN.Model.System;
using DOAN.Model.System.Dto;
using DOAN.Model.System.Vo;
2024-05-16 13:30:30 +08:00
2024-07-01 16:04:10 +08:00
namespace DOAN.Service.System.IService
2024-05-16 13:30:30 +08:00
{
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);
}
}