修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
b9458ecb38
commit
bb9b1283bf
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue