修改
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
he 2025-03-14 16:47:39 +08:00
parent b9458ecb38
commit bb9b1283bf
2 changed files with 8 additions and 3 deletions

View File

@ -163,10 +163,10 @@ namespace IRaCIS.Core.Application.Service
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpDelete("{id:guid}")]
public async Task<IResponseOutput> DeleteAttachment(Guid id)
[HttpPost]
public async Task<IResponseOutput> DeleteAttachment(DeleteAttachment inDto)
{
var success = await _attachmentrepository.DeleteFromQueryAsync(t => t.Id == id, true);
var success = await _attachmentrepository.DeleteFromQueryAsync(t => inDto.Ids.Contains(t.Id));
return ResponseOutput.Ok();
}

View File

@ -40,6 +40,11 @@
public bool IsAuthorizedView { get; set; }
}
public class DeleteAttachment
{
public List<Guid> Ids { get; set; }
}
public class GetTrialDoctorSelectInDto
{
public Guid TrialId { get; set; }