招聘后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

40 lines
1.5 KiB

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
{
/// <summary>
/// </summary>
public interface IRoleAuthorizeService : IService<RoleAuthorizeEntity, RoleAuthorizeOutputDto, long>
{
/// <summary>
/// 根据角色和项目类型查询权限
/// </summary>
/// <param name="roleIds"></param>
/// <param name="itemType"></param>
/// <returns></returns>
IEnumerable<RoleAuthorizeEntity> GetListRoleAuthorizeByRoleId(string roleIds, string itemType);
/// <summary>
/// 获取功能菜单适用于Vue Tree树形
/// </summary>
/// <returns></returns>
Task<List<ModuleFunctionOutputDto>> GetAllFunctionTree();
/// <summary>
/// 保存角色授权
/// </summary>
/// <param name="roleId">角色Id</param>
/// <param name="roleAuthorizesList">角色功能模块</param>
/// <param name="roleDataList">角色可访问数据</param>
/// <param name="trans"></param>
/// <returns>执行成功返回<c>true</c>,否则为<c>false</c>。</returns>
Task<bool> SaveRoleAuthorize(long roleId, List<RoleAuthorizeEntity> roleAuthorizesList,
List<RoleDataEntity> roleDataList,
IDbTransaction trans = null);
}
}