using System.Threading.Tasks;
using GxPress.Repository.Interface;
using GxPress.Request.Print;
using GxPress.Result.Print;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace GxPress.Api.AppControllers
{
///
/// App出版数据
///
[Route("api/app/print")]
[ApiController]
[Authorize]
public class PrintController : ControllerBase
{
private readonly ILogger _logger;
private readonly IPrintRepository _repository;
public PrintController(ILogger logger, IPrintRepository repository)
{
_logger = logger;
_repository = repository;
}
///
/// 出版数据
///
///
///
[HttpPost("chart")]
[AllowAnonymous]
public async Task GetSellChart(PrintRequest request)
{
return await _repository.GetPrintChartAsync(request);
}
}
}