using Microsoft.AspNetCore.Mvc; using WmsMobileServe.ApiClient.Mes.Dto; using WmsMobileServe.ApiServe.Mobile.Dto; using WmsMobileServe.ApiServe.Mobile.Service; using WmsMobileServe.ApiServe.Mobile.Vo; 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); /// /// 码盘入库 /// /// [HttpPost("bindingVehicleIn")] public MobileApiResponse BindingVehicleIn([FromBody] BindingVehicleInReq request) => stockInService.BindingVehicleIn(request); }