using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEA_Core; using WIDESEA_Core.BaseController; using WIDESEA_DTO.Stock; using WIDESEA_IStockService; using WIDESEA_Model.Models; namespace WIDESEA_WMSServer.Controllers.Stock { /// /// 库存 /// [Route("api/StockInfo")] [ApiController] public class StockInfoController : ApiBaseController { public StockInfoController(IStockInfoService service) : base(service) { } /// /// 获取仓库3D布局 /// /// 仓库ID /// 3D布局数据 [HttpGet("Get3DLayout")] public async Task Get3DLayout(int warehouseId) { var result = await Service.Get3DLayoutAsync(warehouseId); return WebResponseContent.Instance.OK(result); } } }