using BPA.SAAS.Manage.Application.System.Dtos;
using BPA.SAAS.Manage.Application.System.Interface;
using BPA.SAAS.Manage.Core.Base;
using BPA.SAAS.Manage.Core.system;
namespace BPA.SAAS.Manage.Application
{
///
/// 数据字典服务接口
///
[ApiDescriptionSettings("SYS", Tag = "字典信息")]
public class DictDataServices : IDynamicApiController
{
private readonly IDictDataService _dictDataService;
public DictDataServices(IDictDataService dictDataService)
{
_dictDataService = dictDataService;
}
///
/// 查询字典信息
///
///
///
[HttpPost("/api/dictdata/getdictdata")]
public async Task GetDictData(DictDataQueryDto dto)
{
return await _dictDataService.GetDictData(dto);
}
///
/// 添加字典信息
///
///
///
[HttpPost("/api/dictdata/adddictdata")]
public async Task AddDictData(DictDataDto dto)
{
return await _dictDataService.AddDictData(dto);
}
///
/// 根据字典类型编码查询
///
///
///
[HttpGet("/api/dictdata/getdiclist")]
public async Task> GetDicList(string typeCode)
{
return await _dictDataService.GetDicList(typeCode);
}
///
/// 修改字典信息
///
///
///
[HttpPost("/api/dictdata/updatedictdata")]
public async Task UpdateDictData(DictDataDto dto)
{
return await _dictDataService.UpdateDictData(dto);
}
///
/// 删除字典信息
///
///
///
[HttpPost("/api/dictdata/batchdeldictdata")]
public async Task BatchDelDictData(List ids)
{
return await _dictDataService.BatchDelDictData(ids);
}
}
}