qinchulong
2024-10-12 7281004dc3854ed59e9164dcd27a59c8c2cf6667
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dt_LocationController.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,41 @@
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);
        }
    }
}