using HslCommunication.WebSocket; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using WIDESEAWCS_Core; using WIDESEAWCS_Core.BaseController; using WIDESEAWCS_Core.Enums; using WIDESEAWCS_IWMSPart; using WIDESEAWCS_Model.Models; namespace WIDESEAWCS_Server.Controllers.WMSPart { /// /// 货位 /// [Route("api/LocationInfo")] [ApiController] public class LocationInfoController : ApiBaseController { public LocationInfoController(ILocationInfoService service) : base(service) { } [HttpPost, Route("GetLocationConfigs"), AllowAnonymous] public WebResponseContent GetLocationConfigs(int layer) { DateTime s = DateTime.Now; WebResponseContent content = Service.GetLocationConfigs(layer); double d = (DateTime.Now - s).TotalMilliseconds; return content; } [HttpPost, Route("GetLocationLayer"), AllowAnonymous] public WebResponseContent GetLocationLayer() { return Service.GetLocationLayer(); } } }