Files
shgx_tz_mes_backend_sync/ZR.Service/System/IService/ISysDeptService.cs

26 lines
904 B
C#
Raw Normal View History

2021-08-23 16:57:25 +08:00
using System;
using System.Collections.Generic;
using System.Text;
using ZR.Model.System;
2022-03-06 14:26:05 +08:00
using ZR.Model.System.Vo;
2021-08-23 16:57:25 +08:00
2021-09-16 19:35:17 +08:00
namespace ZR.Service.System.IService
2021-08-23 16:57:25 +08:00
{
2021-09-27 16:07:55 +08:00
public interface ISysDeptService : IBaseService<SysDept>
2021-08-23 16:57:25 +08:00
{
2021-09-27 16:07:55 +08:00
List<SysDept> GetSysDepts(SysDept 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);
2022-01-22 20:47:48 +08:00
List<SysRoleDept> SelectRoleDeptByRoleId(long roleId);
List<long> SelectRoleDepts(long roleId);
2022-03-19 08:04:08 +08:00
bool DeleteRoleDeptByRoleId(long roleId);
2022-01-22 20:47:48 +08:00
int InsertRoleDepts(SysRole role);
2021-08-23 16:57:25 +08:00
}
}