using HslCommunication.WebSocket; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using WIDESEA_Common.CommonEnum; using WIDESEA_Common.LocationEnum; using WIDESEA_Core; using WIDESEA_Core.BaseController; using WIDESEA_Core.Enums; using WIDESEA_DTO.Basic; using WIDESEA_IBasicService; using WIDESEA_Model.Models; namespace WIDESEA_WMSServer.Controllers.Basic { /// /// 货位 /// [Route("api/LocationInfo")] [ApiController] public class LocationInfoController : ApiBaseController { public LocationInfoController(ILocationInfoService service) : base(service) { } /// /// 启用货位 /// /// /// [HttpPost, Route("LocationEnableStatus")] public WebResponseContent LocationEnableStatus([FromBody] int[] keys) { return Service.LocationEnableStatus(keys); ; } /// /// 禁用货位 /// /// /// [HttpPost, Route("LocationDisableStatus")] public WebResponseContent LocationDisableStatus([FromBody] int[] keys) { return Service.LocationDisableStatus(keys); ; } /// /// 一键启动巷道货位 /// /// 巷道号 /// [HttpPost, Route("EnableAllLocationsInRoadway")] public WebResponseContent EnableAllLocationsInRoadway(string roadwayNo) { return Service.EnableAllLocationsInRoadway(roadwayNo); } /// /// 一键禁用巷道货位 /// /// 巷道号 /// [HttpPost, Route("DisableAllLocationsInRoadway")] public WebResponseContent DisableAllLocationsInRoadway(string roadwayNo) { return Service.DisableAllLocationsInRoadway(roadwayNo); } /// /// 获取巷道 /// [HttpGet, Route("GetArea"), AllowAnonymous] public WebResponseContent GetArea() { return Service.GetArea(); } /// /// 获取货位信息 /// [HttpGet, Route("GetLocationStatus"), AllowAnonymous] public WebResponseContent GetLocationStatus(int WarehouseId, string RoadwayNo) { return Service.GetLocationStatus(WarehouseId, RoadwayNo); } } }