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) { } /// /// 获取巷道 /// [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); } } }