using YBEE.EQM.Core;
namespace YBEE.EQM.Application;
///
/// 字典数据
///
[ApiDescriptionSettings(Name = "sys-dict-data")]
[Route("sys/dict/data")]
public class SysDictDataAppService : IDynamicApiController
{
private readonly ISysDictDataService _dictDataService;
public SysDictDataAppService(ISysDictDataService dictDataService)
{
_dictDataService = dictDataService;
}
///
/// 获取所有字典列表
///
///
[AllowAnonymous]
[DisableOpLog]
public async Task> GetAllList()
{
return await _dictDataService.GetAllList();
}
///
/// 通过字典类型ID获取字典列表
///
///
///
[AllowAnonymous]
[DisableOpLog]
public async Task> GetListByDictTypeId(int dictTypeId)
{
return await _dictDataService.GetListByDictTypeId(dictTypeId);
}
}