using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Mvc;
|
using Model.ModelDto.SysDto;
|
using Model.ModelVm.SysVm;
|
using System;
|
using System.Collections.Generic;
|
using System.Threading.Tasks;
|
using Utility;
|
using WMS.IBLL.ISysServer;
|
|
namespace Wms.Controllers
|
{
|
[Route("api/[controller]/[action]")]
|
[ApiController]
|
[Authorize]
|
[ServiceFilter(typeof(ApiResponseActionFilter))]
|
public class BordController : ControllerBase
|
{
|
|
private readonly IStorageLocatServer _locatSvc; //储位
|
|
public BordController(IStorageLocatServer locatSvc)
|
{
|
_locatSvc = locatSvc; //储位
|
}
|
|
[HttpGet]
|
public async Task<BordModelVM> GetSlotVm(string layer)
|
{
|
return await _locatSvc.GetFlatLegend("W01",Convert.ToInt32(layer));
|
}
|
|
}
|
}
|