mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.9 KiB
67 lines
1.9 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Volo.Abp;
|
|
using Volo.Abp.Application.Dtos;
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
using Volo.Docs.Admin.Documents;
|
|
|
|
namespace Volo.Docs.Admin
|
|
{
|
|
[RemoteService(Name = DocsAdminRemoteServiceConsts.RemoteServiceName)]
|
|
[Area("docs")]
|
|
[ControllerName("DocumentsAdmin")]
|
|
[Route("api/docs/admin/documents")]
|
|
public class DocumentsAdminController : AbpController, IDocumentAdminAppService
|
|
{
|
|
private readonly IDocumentAdminAppService _documentAdminAppService;
|
|
|
|
public DocumentsAdminController(IDocumentAdminAppService documentAdminAppService)
|
|
{
|
|
_documentAdminAppService = documentAdminAppService;
|
|
}
|
|
|
|
[HttpPost]
|
|
[Route("ClearCache")]
|
|
public Task ClearCacheAsync(ClearCacheInput input)
|
|
{
|
|
return _documentAdminAppService.ClearCacheAsync(input);
|
|
}
|
|
|
|
[HttpPost]
|
|
[Route("PullAll")]
|
|
public Task PullAllAsync(PullAllDocumentInput input)
|
|
{
|
|
return _documentAdminAppService.PullAllAsync(input);
|
|
}
|
|
|
|
[HttpPost]
|
|
[Route("Pull")]
|
|
public Task PullAsync(PullDocumentInput input)
|
|
{
|
|
return _documentAdminAppService.PullAsync(input);
|
|
}
|
|
|
|
[HttpGet]
|
|
[Route("GetAll")]
|
|
public Task<PagedResultDto<DocumentDto>> GetAllAsync(GetAllInput input)
|
|
{
|
|
return _documentAdminAppService.GetAllAsync(input);
|
|
}
|
|
|
|
[HttpPut]
|
|
[Route("RemoveDocumentFromCache")]
|
|
public async Task RemoveFromCacheAsync(Guid documentId)
|
|
{
|
|
await _documentAdminAppService.RemoveFromCacheAsync(documentId);
|
|
}
|
|
|
|
[HttpPut]
|
|
[Route("ReindexDocument")]
|
|
public async Task ReindexAsync(Guid documentId)
|
|
{
|
|
await _documentAdminAppService.ReindexAsync(documentId);
|
|
}
|
|
}
|
|
}
|
|
|