刘磊
2025-06-09 8f6a1e8a01a518a384d22f0f773459be744a2a4d
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
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_DTO;
using WIDESEA_IStoragIntegrationServices;
 
namespace WIDESEA_WMSServer.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class CellStateController : Controller
    {
        private readonly ICellStateService _cellStateService;
 
        public CellStateController(ICellStateService cellStateService) { _cellStateService = cellStateService; }
 
        // POST: api/CellState/GetCellState
        [HttpPost("GetCellState")]
        public Task<dynamic> GetCellStateAsync([FromBody] CellStateDto input)
        {
            return _cellStateService.GetCellStateAsync(input);
        }
 
        // POST: api/CellState/GetTrayCellState
        [HttpPost("GetTrayCellState")]
        public Task<WebResponseContent> GetTrayCellStateAsync([FromBody] TrayCellsStatusDto input)
        {
            return _cellStateService.GetTrayCellStatusAsync(input);
        }
    }
}