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<IDt_LocationService, Dt_LocationInfo>
|
{
|
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);
|
}
|
|
/// <summary>
|
/// 创建原始货位数据 (随便写了一个双深货位的)
|
/// </summary>
|
/// <param name="x">行</param>
|
/// <param name="y">列</param>
|
/// <param name="z">层</param>
|
/// <param name="locType">货位类型(1、单深,2、双深)</param>
|
/// <returns></returns>
|
[HttpPost, Route("CreateLocation"),AllowAnonymous]
|
public WebResponseContent CreateLocation(int x,int y,int z, int locType)
|
{
|
return _locationService.CreateLocation(x, y, z, locType);
|
}
|
|
}
|
}
|