@@ -183,6 +183,22 @@ namespace IRaCIS.Core.Application.Services
|
||||
return ResponseOutput.Result(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 下线系统文档
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<IResponseOutput> OutLineSystemDocument(PublishSystemDocumentInDto inDto)
|
||||
{
|
||||
await _systemDocumentRepository.UpdatePartialFromQueryAsync(x => inDto.Ids.Contains(x.Id), x => new SystemDocument()
|
||||
{
|
||||
IsDeleted = true,
|
||||
});
|
||||
var result = await _systemDocumentRepository.SaveChangesAsync();
|
||||
await _mediatorScoped.Publish(new SystemDocumentPublishEvent() { Ids = inDto.Ids });
|
||||
return ResponseOutput.Result(result);
|
||||
}
|
||||
|
||||
[HttpDelete("{systemDocumentId:guid}")]
|
||||
public async Task<IResponseOutput> AbandonSystemDocumentAsync(Guid systemDocumentId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user