using Microsoft.AspNetCore.Mvc; using WIDESEA_BusinessServices; using WIDESEA_Core.BaseController; using WIDESEA_Model.Models; namespace WIDESEA_WMSServer.Controllers { [Route("api/Dt_LocationInfo")] [ApiController] public class Dt_LocationInfoController : ApiBaseController { private readonly IHttpContextAccessor _httpContextAccessor; private readonly IDt_LocationService _locationService; public Dt_LocationInfoController(IDt_LocationService service, IHttpContextAccessor httpContextAccessor) : base(service) { _httpContextAccessor = httpContextAccessor; _locationService = service; } [HttpPost, Route("LocationEnable")] public WebResponseContent LocationEnable([FromBody] SaveModel saveModel) { return _locationService.LocationEnable(saveModel); } /// /// 创建原始货位数据 (随便写了一个双深货位的) /// /// 行 /// 列 /// 层 /// 货位类型(1、单深,2、双深) /// [HttpPost, Route("CreateLocation"),AllowAnonymous] public WebResponseContent CreateLocation(int x,int y,int z, int locType) { return _locationService.CreateLocation(x, y, z, locType); } } }