文档删除

IRC_NewDev
hang 2023-11-06 14:09:31 +08:00
parent 15834921a8
commit 9d49ed9e61
1 changed files with 8 additions and 0 deletions

View File

@ -110,5 +110,13 @@ namespace IRaCIS.Core.Application.Service
}
[HttpDelete("{commonDocumentId:guid}")]
public async Task<IResponseOutput> DeleteCommonDocument(Guid commonDocumentId)
{
var success = await _commonDocumentRepository.DeleteFromQueryAsync(t => t.Id == commonDocumentId, true);
return ResponseOutput.Ok();
}
}
}