招聘后台
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);
}
}