#409 api/pdf/q/mix
This commit is contained in:
parent
c176979ab9
commit
101c2e3e65
@ -1538,6 +1538,28 @@ namespace RMuseum.Controllers
|
||||
return Ok(res.Result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// mix queued pdf books
|
||||
/// </summary>
|
||||
/// <param name="step"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[Route("q/mix/{step}")]
|
||||
[Authorize(Policy = RMuseumSecurableItem.PDFLibraryEntityShortName + ":" + SecurableItem.ModifyOperationShortName)]
|
||||
[ProducesResponseType((int)HttpStatusCode.OK)]
|
||||
[ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(string))]
|
||||
[ProducesResponseType((int)HttpStatusCode.NotFound)]
|
||||
public async Task<IActionResult> MixuQueuedPDFBooksAsync(int step = 10)
|
||||
{
|
||||
|
||||
var res = await _pdfService.MixuQueuedPDFBooksAsync(step);
|
||||
if (!string.IsNullOrEmpty(res.ExceptionString))
|
||||
{
|
||||
return BadRequest(res.ExceptionString);
|
||||
}
|
||||
return Ok();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// start processing queue pdf books
|
||||
/// </summary>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user