qinchulong
2024-10-12 7281004dc3854ed59e9164dcd27a59c8c2cf6667
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
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);
        }
 
    }
}