添加查询参数

This commit is contained in:
he
2022-04-13 14:31:41 +08:00
parent 6944ca3049
commit b643ae1c18
5 changed files with 81 additions and 55 deletions
@@ -100,6 +100,9 @@ namespace IRaCIS.Core.Application.ViewModel
public string Identification { get; set; }
}
public class CopyOtherToThisItem
{
public List<Guid?> DataSource { get; set; }=new List<Guid?>(){ };
@@ -107,6 +110,11 @@ namespace IRaCIS.Core.Application.ViewModel
public Guid AddItem { get; set; }
}
public class GetDescriptionByModuleTypeDto
{
public string ModuleType { get; set; } = string.Empty;
}
///<summary>FrontAuditConfigQuery 列表查询参数模型</summary>
public class FrontAuditConfigQuery
{
@@ -110,13 +110,20 @@ namespace IRaCIS.Core.Application.Service
await _repository.SaveChangesAsync();
return ResponseOutput.Ok();
}
/// <summary>
/// 获取Description
/// </summary>
/// <param name="dto"></param>
/// <returns></returns>
[HttpPost]
public async Task<List<string>> GetDescriptionByModuleType(GetDescriptionByModuleTypeDto dto)
{
var result= await _frontAuditConfigRepository.Where(x=>x.ModuleTypeId== dto.ModuleType&&x.Description!=null &&x.Description!=string.Empty).Select(x=>x.Description).Distinct().ToListAsync();
return result;
}
/// <summary>
/// 获取列表