using BPA.SAAS.Manage.Application.System.Dtos;
using BPA.SAAS.Manage.Application.System.Interface;
using BPA.SAAS.Manage.Core.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace BPA.SAAS.Manage.Application.System
{
[ApiDescriptionSettings("SYS", Tag = "字典类型")]
public class DictTypeServices: IDynamicApiController, ITransient
{
IDictTypeService _dicttypeServices;
///
///
///
///
public DictTypeServices(IDictTypeService dicttypeServices)
{
_dicttypeServices = dicttypeServices;
}
#region 字典类型信息
///
/// 查询字典类型信息
///
///
///
[HttpPost("/api/dicttype/getdicttype")]
public async Task GetDictType([FromBody] DictTypeQueryDto dto)
{
return await _dicttypeServices.GetDictType(dto);
}
///
/// 添加字典类型信息
///
///
///
[HttpPost("/api/dicttype/adddicttype")]
public async Task Add(DictTypeDto dto)
{
return await _dicttypeServices.AddDictType(dto);
}
///
/// 修改字典类型信息
///
///
///
[HttpPost("/api/dicttype/updatedicttype")]
public async Task Update(DictTypeDto dto)
{
return await _dicttypeServices.UpdateDictType(dto);
}
///
/// 删除字典类型信息
///
///
///
[HttpPost("/api/dicttype/deletetedicttype")]
public async Task Delete(List ids)
{
return await _dicttypeServices.BathchDelDictType(ids);
}
///
/// 字典类型下拉数据列表
///
///
[HttpGet("/api/dicttype/dicttype")]
public Dictionary GetDictType()
{
return _dicttypeServices.GetDictType();
}
#endregion
}
}