using System.Threading.Tasks;
using GxPress.Repository.Interface;
using GxPress.Request.Storehouse;
using GxPress.Result.Storehouse;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace GxPress.Api.AppControllers
{
///
/// APP仓库数据
///
[Route("api/app/storehouse")]
[ApiController]
[Authorize]
public class StorehouseController : ControllerBase
{
private readonly ILogger _logger;
private readonly IStorehouseRepository _repository;
public StorehouseController(ILogger logger, IStorehouseRepository repository)
{
_logger = logger;
_repository = repository;
}
///
/// 库存图标
///
///
///
[HttpPost("chart")]
[AllowAnonymous]
public async Task GetStorehouseChart(StorehouseRequest request)
{
return await _repository.GetStorehouseChartAsync(request);
}
}
}