wms_serve_m_jinwangbancai/WmsMobileServe/ApiServe/Mobile/Controllers/StockInController.cs

47 lines
1.4 KiB
C#
Raw Normal View History

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
{
/// <summary>
/// 接口测试
/// </summary>
/// <returns></returns>
[HttpGet("test")]
public string ApiTest() => "OK";
/// <summary>
/// 空箱入库接口
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost("emptyVehicleIn")]
public MobileApiResponse EmptyVehicleIn([FromBody] EmptyVehicleInReq request) => stockInService.EmptyVehicleIn(request);
/// <summary>
/// 传入箱号获取箱号详细信息
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpGet("getGoodsDetail")]
public MobileApiResponse<GetGoodsDetailResp> GetGoodsDetail([FromQuery] string? boxNo) => stockInService.GetGoodsDetail(boxNo);
/// <summary>
/// 码盘入库
/// </summary>
/// <returns></returns>
[HttpPost("bindingVehicleIn")]
public MobileApiResponse BindingVehicleIn([FromBody] BindingVehicleInReq request) => stockInService.BindingVehicleIn(request);
}