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

46 lines
1.5 KiB

using System.Collections.Generic;
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 IDictionaryService : IService<DictionaryEntity, DictionaryOutputDto, long>
{
/// <summary>
/// 获取功能菜单适用于Vue 树形列表
/// </summary>
/// <returns></returns>
Task<List<DictionaryOutputDto>> GetAllDictionaryTreeTable();
/// <summary>
/// 根据编码查询字典分类
/// </summary>
/// <param name="enCode"></param>
/// <returns></returns>
Task<DictionaryEntity> GetByEnCodAsynce(string enCode);
/// <summary>
/// 更新时判断分类编码是否存在(排除自己)
/// </summary>
/// <param name="enCode">分类编码</param
/// <param name="id">主键Id</param>
/// <returns></returns>
Task<DictionaryEntity> GetByEnCodAsynce(string enCode, long id);
/// <summary>
/// 查询单条数据字典
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<DictionaryOutputDto> GetDictionaryById(long id);
/// <summary>
/// 根据ParentId查询数据字典列表
/// </summary>
/// <param name="pid"></param>
/// <returns></returns>
Task<List<DictionaryListOutput>> GetListByPidAsync(long pid);
}
}