| | |
| | | 锘縰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; |
| | |
| | | [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)); |
| | | } |
| | | } |
| | | } |