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.
52 lines
1.6 KiB
52 lines
1.6 KiB
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Znyc.Admin.Commons.IServices;
|
|
using Znyc.Admin.Commons.Pages;
|
|
using Znyc.Admin.Security.Dtos;
|
|
using Znyc.Admin.Security.Entitys;
|
|
|
|
namespace Znyc.Admin.Security.IServices
|
|
{
|
|
public interface IDictionaryService : IService<Dictionary, DictionaryOutputDto, long>
|
|
{
|
|
/// <summary>
|
|
/// 获取功能菜单适用于Vue 树形列表
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<List<DictionaryOutputDto>> GetAllItemsTreeTable();
|
|
|
|
/// <summary>
|
|
/// 根据编码查询字典分类
|
|
/// </summary>
|
|
/// <param name="enCode"></param>
|
|
/// <returns></returns>
|
|
Task<Dictionary> GetByEnCodAsynce(string enCode);
|
|
|
|
/// <summary>
|
|
/// 更新时判断分类编码是否存在(排除自己)
|
|
/// </summary>
|
|
/// <param name="enCode">分类编码</param
|
|
/// <param name="id">主键Id</param>
|
|
/// <returns></returns>
|
|
Task<Dictionary> GetByEnCodAsynce(string enCode, long id);
|
|
|
|
/// <summary>
|
|
/// 查询数据字典列表
|
|
/// </summary>
|
|
/// <param name="ids"></param>
|
|
/// <param name="code"></param>
|
|
/// <returns></returns>
|
|
Task<List<DictionaryOutputDto>> GetDictionaryListByWhere(string ids, string code);
|
|
|
|
/// <summary>
|
|
/// 查询单条数据字典
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
Task<DictionaryOutputDto> GetDictionaryById(long id);
|
|
|
|
Task<PageResult<DictionaryOutputDto>> FindWithPagerSearchAsync(SearchUserModel search);
|
|
|
|
Task<List<DictionaryOutputDto>> SyncDictionaryCache();
|
|
}
|
|
}
|