using DS.Module.Core;
using DS.WMS.Core.WmsModule.Dtos;
using DS.WMS.Core.WmsModule.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.WebApi.Controllers;
///
/// 预约入库
///
public class WmsInPlanController : ApiController
{
private readonly IWmsInPlanService _invokeService;
///
/// 构造函数
///
///
public WmsInPlanController(IWmsInPlanService invokeService)
{
_invokeService = invokeService;
}
///
/// 预约入库列表
///
///
///
[HttpPost]
[Route("GetWmsInPlanList")]
public DataResult> GetWmsInPlanList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 获取预约入库信息
///
///
///
[HttpGet]
[Route("GetWmsInPlanInfo")]
public DataResult GetWmsInPlanInfo([FromQuery]string id)
{
var res = _invokeService.GetWmsInPlanInfo(id);
return res;
}
///
/// 维护预约入库信息
///
///
///
[HttpPost]
[Route("EditWmsInPlanInfo")]
public DataResult EditWmsInPlanInfo([FromBody] WmsInPlanInput model)
{
var res = _invokeService.EditWmsInPlanInfo(model);
return res;
}
///
/// 提交审核
///
///
///
[HttpGet]
[Route("SubmitWmsInPlan")]
public DataResult SubmitWmsInPlan([FromQuery]string id)
{
var res = _invokeService.SubmitWmsInPlan(id);
return res;
}
///
///
///
///
///
[HttpGet]
[Route("GetWmsInPlanGoodsList")]
public DataResult GetWmsInPlanGoodsList([FromQuery]string id)
{
var res = _invokeService.GetWmsInPlanGoodsList(id);
return res;
}
}