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
|
{
|
/// <summary>
|
/// 库存
|
/// </summary>
|
[Route("api/StockInfo")]
|
[ApiController]
|
public class StockInfoController : ApiBaseController<IStockInfoService, Dt_StockInfo>
|
{
|
public StockInfoController(IStockInfoService service) : base(service)
|
{
|
}
|
|
/// <summary>
|
/// 获取仓库3D布局
|
/// </summary>
|
/// <param name="warehouseId">仓库ID</param>
|
/// <returns>3D布局数据</returns>
|
[HttpGet("Get3DLayout")]
|
public async Task<WebResponseContent> Get3DLayout(int warehouseId)
|
{
|
var result = await Service.Get3DLayoutAsync(warehouseId);
|
return WebResponseContent.Instance.OK(result);
|
}
|
}
|
}
|