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.
37 lines
1.1 KiB
37 lines
1.1 KiB
using System.Threading.Tasks;
|
|
using Asp.Versioning;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Volo.Abp;
|
|
using Volo.Abp.Content;
|
|
using Volo.Docs.Common;
|
|
using Volo.Docs.Common.Documents;
|
|
|
|
namespace Volo.Docs.Documents;
|
|
|
|
[RemoteService(Name = DocsCommonRemoteServiceConsts.RemoteServiceName)]
|
|
[Area(DocsCommonRemoteServiceConsts.ModuleName)]
|
|
[ControllerName("DocumentPdf")]
|
|
[Route("api/docs/documents/pdf")]
|
|
public class DocsDocumentPdfController : DocsControllerBase, IDocumentPdfAppService
|
|
{
|
|
protected IDocumentPdfAppService DocumentPdfAppService { get; }
|
|
|
|
public DocsDocumentPdfController(IDocumentPdfAppService documentPdfAppService)
|
|
{
|
|
DocumentPdfAppService = documentPdfAppService;
|
|
}
|
|
|
|
[HttpGet]
|
|
[Route("download")]
|
|
public Task<IRemoteStreamContent> DownloadPdfAsync(DocumentPdfGeneratorInput input)
|
|
{
|
|
return DocumentPdfAppService.DownloadPdfAsync(input);
|
|
}
|
|
|
|
[HttpGet]
|
|
[Route("exists")]
|
|
public Task<bool> ExistsAsync(DocumentPdfGeneratorInput input)
|
|
{
|
|
return DocumentPdfAppService.ExistsAsync(input);
|
|
}
|
|
}
|