using System.Threading.Tasks; using GxPress.Repository.Interface; using GxPress.Request.Sell; using GxPress.Result.sell; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; namespace GxPress.Api.AppControllers { /// /// APP发行数据 /// [Route("api/app/sell")] [ApiController] [Authorize] public class SellController : ControllerBase { private readonly ILogger _logger; private readonly ISellRepository _repository; public SellController(ILogger logger, ISellRepository repository) { _logger = logger; _repository = repository; } /// /// 发行图表 /// /// /// [HttpPost("chart")] [AllowAnonymous] public async Task GetSellChart(SellRequest request) { return await _repository.GetSellChartAsync(request); } } }