using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
using Znyc.Recruitment.Admin.Commons.IServices;
using Znyc.Recruitment.Admin.Security.Dtos;
using Znyc.Recruitment.Admin.Security.Entitys;
namespace Znyc.Recruitment.Admin.Security.IServices
{
///
///
public interface IRoleAuthorizeService : IService
{
///
/// 根据角色和项目类型查询权限
///
///
///
///
IEnumerable GetListRoleAuthorizeByRoleId(string roleIds, string itemType);
///
/// 获取功能菜单适用于Vue Tree树形
///
///
Task> GetAllFunctionTree();
///
/// 保存角色授权
///
/// 角色Id
/// 角色功能模块
/// 角色可访问数据
///
/// 执行成功返回true,否则为false。
Task SaveRoleAuthorize(long roleId, List roleAuthorizesList,
List roleDataList,
IDbTransaction trans = null);
}
}