Files
tnb.server/system/Tnb.Systems.Interfaces/System/IDictionaryDataService.cs
2024-04-23 10:16:16 +08:00

47 lines
1.4 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using JNPF.Systems.Entitys.System;
namespace JNPF.Systems.Interfaces.System;
/// <summary>
/// 字典数据
/// 版 本V3.2
/// 版 权拓通智联科技有限公司http://www.tuotong-tech.com
/// 日 期2021-06-01.
/// </summary>
public interface IDictionaryDataService
{
/// <summary>
/// 获取数据字典列表.
/// </summary>
/// <param name="dictionaryTypeId">分类id或编码.</param>
/// <param name="enabledMark">是否过滤启用状态.</param>
/// <returns></returns>
Task<List<DictionaryDataEntity>> GetList(string dictionaryTypeId, bool enabledMark = true);
/// <summary>
/// 获取按钮信息.
/// </summary>
/// <param name="id">主键id.</param>
/// <returns></returns>
Task<DictionaryDataEntity> GetInfo(string id);
/// <summary>
/// 根据key获取字典
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
Task<Dictionary<string, object>> GetDicByKey(string key);
/// <summary>
/// 根据typeId获取字典
/// </summary>
/// <param name="typeId"></param>
/// <returns></returns>
Task<Dictionary<string, object>> GetDicByTypeId(string typeId);
/// <summary>
/// 根据typeId获取字典
/// </summary>
/// <param name="typeId"></param>
/// <returns>{{id,fullName}}</returns>
Task<Dictionary<string, object>> GetDictionaryByTypeId(string typeId);
}