123456789101112131415161718192021222324252627282930313233343536 |
- 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
- {
-
-
-
- [Route("api/app/finance")]
- [ApiController]
- public class FinanceController : ControllerBase
- {
- private readonly ILogger<FinanceController> _logger;
- private readonly IFinanceRepository _repository;
- public FinanceController(ILogger<FinanceController> logger, IFinanceRepository repository)
- {
- _logger = logger;
- _repository = repository;
- }
-
-
-
-
-
- [HttpPost("chart")]
- public async Task<FinanceResult> GetFinanceChart(FinanceRequest request)
- {
- return await _repository.GetFinanceChartAsync(request);
- }
- }
- }
|