using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json.Linq; using Opsoft.NetCore.O3App.Domain; using Opsoft.NetCore.O3App.Domain.UnitOfWork.BaseData.Model; using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IServices; using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model; using Opsoft.NetCore.O3App.Shared; using Opsoft.NetCore.O3App.WebApi.Models; using System.Collections.Generic; using System.Data; using System.Threading.Tasks; namespace Opsoft.NetCore.O3App.WebApi.Controllers.WMS { /// /// 库存查询 /// [Authorize] public class STKInventoryController : BaseApiController { private readonly ISTKInventoryService service; public STKInventoryController(IMapper mapper, ILogger logger, ISTKInventoryService Service) : base(mapper, logger) { service = Service; } [HttpPost] public async Task>> QueryInventory([FromBody] JObject request) { return await TryProcess(async input => { return await service.QueryInventory(request); }, request); } } }