修改
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>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpDelete("{id:guid}")]
|
[HttpPost]
|
||||||
public async Task<IResponseOutput> DeleteAttachment(Guid id)
|
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();
|
return ResponseOutput.Ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,11 @@
|
||||||
public bool IsAuthorizedView { get; set; }
|
public bool IsAuthorizedView { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class DeleteAttachment
|
||||||
|
{
|
||||||
|
public List<Guid> Ids { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
public class GetTrialDoctorSelectInDto
|
public class GetTrialDoctorSelectInDto
|
||||||
{
|
{
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
Loading…
Reference in New Issue