招聘后台
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.

69 lines
2.5 KiB

using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
using Znyc.Recruitment.Admin.Commons.Core.Dtos;
using Znyc.Recruitment.Admin.Commons.Entitys;
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 IMenuService : IService<MenuEntity, MenuOutputDto, long>
{
/// <summary>
/// �����û���ȡ���ܲ˵�
/// </summary>
/// <param name="userId">�û�ID</param>
/// <returns></returns>
List<MenuEntity> GetMenuByUser(long userId);
/// <summary>
/// ��ȡ���ܲ˵�������Vue �����б�
/// </summary>
/// <param name="systemTypeId">��ϵͳId</param>
/// <returns></returns>
Task<List<MenuTreeTableOutputDto>> GetAllMenuTreeTable(string systemTypeId);
/// <summary>
/// ���ݽ�ɫID�ַ��������ŷֿ�)��ϵͳ����ID����ȡ��Ӧ�IJ��������б�
/// </summary>
/// <param name="roleIds">��ɫID</param>
/// <param name="typeID">ϵͳ����ID</param>
/// <param name="isMenu">�Ƿ��Dz˵�</param>
/// <returns></returns>
List<MenuEntity> GetFunctions(string roleIds, string typeID, bool isMenu = false);
/// <summary>
/// ����ϵͳ����ID����ȡ��Ӧ�IJ��������б�
/// </summary>
/// <param name="typeID">ϵͳ����ID</param>
/// <returns></returns>
List<MenuEntity> GetFunctions(string typeID);
/// <summary>
/// ���ݸ������ܱ�����ѯ�����Ӽ����ܣ���Ҫ����ҳ��������ťȨ��
/// </summary>
/// <param name="enCode">�˵����ܱ���</param>
/// <returns></returns>
Task<IEnumerable<MenuOutputDto>> GetListByParentEnCode(string enCode);
/// <summary>
/// ����������ɾ��
/// </summary>
/// <param name="ids">����Id����</param>
/// <param name="trans">��������</param>
/// <returns></returns>
CommonResult DeleteBatchWhere(DeletesInputDto ids, IDbTransaction trans = null);
/// <summary>
/// �첽����������ɾ��
/// </summary>
/// <param name="ids">����Id����</param>
/// <param name="trans">��������</param>
/// <returns></returns>
Task<CommonResult> DeleteBatchWhereAsync(DeletesInputDto ids, IDbTransaction trans = null);
}
}