using Microsoft.AspNetCore.Mvc;
using WmsMobileServe.ApiClient.Mes.Dto;
using WmsMobileServe.ApiServe.Mobile.Dto;
using WmsMobileServe.ApiServe.Mobile.Service;
using WmsMobileServe.ApiServe.Mobile.Vo;
using WmsMobileServe.DataBase.Base.Po;
namespace WmsMobileServe.ApiServe.Mobile.Controllers;
// 入库专用 API
[Route("api/mobile/stockIn")]
[ApiController]
public class StockInController(StockInService stockInService) : ControllerBase
{
///
/// 接口测试
///
///
[HttpGet("test")]
public string ApiTest() => "OK";
///
/// 空箱入库接口
///
///
///
[HttpPost("emptyVehicleIn")]
public MobileApiResponse EmptyVehicleIn([FromBody] EmptyVehicleInReq request) => stockInService.EmptyVehicleIn(request);
///
/// 传入箱号获取箱号详细信息
///
///
///
[HttpGet("getGoodsDetail")]
public MobileApiResponse GetGoodsDetail([FromQuery] string? boxNo) => stockInService.GetGoodsDetail(boxNo);
///
/// MES码盘入库
///
///
[HttpPost("bindingVehicleIn")]
public MobileApiResponse BindingVehicleIn([FromBody] BindingVehicleInReq request) => stockInService.BindingVehicleIn(request);
///
/// 获取EBS码盘信息
///
///
[HttpGet("getCuxData")]
public MobileApiResponse> GetCuxData() => stockInService.GetCuxData();
///
/// Ebs码盘入库
///
///
[HttpPost("bindingVehicleInEbs")]
public MobileApiResponse BindingVehicleInEbs([FromBody] BindingVehicleInEbsReq request) => stockInService.BindingVehicleInEbs(request);
}