using System.Threading.Tasks;
using GxPress.Repository.Interface;
using GxPress.Request.Finance;
using GxPress.Result.Finance;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace GxPress.Api.AppControllers
{
///
/// APP财务数据
///
[Route("api/app/finance")]
[ApiController]
public class FinanceController : ControllerBase
{
private readonly ILogger _logger;
private readonly IFinanceRepository _repository;
public FinanceController(ILogger logger, IFinanceRepository repository)
{
_logger = logger;
_repository = repository;
}
///
/// 财务图表
///
///
///
[HttpPost("chart")]
public async Task GetFinanceChart(FinanceRequest request)
{
return await _repository.GetFinanceChartAsync(request);
}
}
}