1
z8018
2025-06-06 ee5e3a086a5dc145e7f5df3de32e0e072c183949
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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_DTO.BasicInfo;
using WIDESEAWCS_IWMSPart;
using WIDESEAWCS_Model.Models;
 
namespace WIDESEAWCS_Server.Controllers.WMSPart
{
    /// <summary>
    /// 货位
    /// </summary>
    [Route("api/LocationInfo")]
    [ApiController]
    public class LocationInfoController : ApiBaseController<ILocationInfoService, Dt_LocationInfo>
    {
 
        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();
        }
 
        [HttpPost, Route("InitializationLocation"), AllowAnonymous]
        public WebResponseContent InitializationLocation([FromBody] InitializationLocationDTO initializationLocationDTO)
        {
            return Service.InitializationLocation(initializationLocationDTO);
        }
 
        [HttpPost, Route("getlocation"), AllowAnonymous]
        public WebResponseContent getlocation()
        {
            return Service.getlocation();
        }
    }
}