dengjunjie
2025-07-09 7ca9651f81d7b84f054194d3d46fdbd1d9c8b922
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/WarehouseController.cs
@@ -1,5 +1,9 @@
锘縰sing Microsoft.AspNetCore.Http;
锘縰sing Autofac.Core;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_BasicService;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_IBasicService;
using WIDESEA_Model.Models;
@@ -10,8 +14,32 @@
    [ApiController]
    public class WarehouseController : ApiBaseController<IWarehouseService, Dt_Warehouse>
    {
        readonly IWarehouseService _warehouseService;
        public WarehouseController(IWarehouseService service) : base(service)
        {
            _warehouseService = service;
        }
        /// <summary>
        /// 鍚敤
        /// </summary>
        /// <param name="position"></param>
        /// <returns></returns>
        [HttpPost, AllowAnonymous, Route("WarehouseEnableStatus")]
        public WebResponseContent WarehouseEnableStatus(string keys)
        {
            return _warehouseService.WarehouseEnableStatus(Array.ConvertAll(keys.Split(","), int.Parse));
        }
        /// <summary>
        /// 绂佺敤
        /// </summary>
        /// <param name="position"></param>
        /// <returns></returns>
        [HttpPost, AllowAnonymous, Route("WarehouseDisableStatus")]
        public WebResponseContent WarehouseDisableStatus(string keys)
        {
            return _warehouseService.WarehouseDisableStatus(Array.ConvertAll(keys.Split(","), int.Parse));
        }
    }
}