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 WmsClearanceController : ApiController
{
private readonly IWmsClearanceService _invokeService;
///
/// 构造函数
///
///
public WmsClearanceController(IWmsClearanceService invokeService)
{
_invokeService = invokeService;
}
///
/// 预约清关列表
///
///
///
[HttpPost]
[Route("GetWmsClearanceList")]
public DataResult> GetWmsClearanceList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 获取预约清关信息
///
///
///
[HttpGet]
[Route("GetWmsClearanceInfo")]
public DataResult GetWmsClearanceInfo([FromQuery]string id)
{
var res = _invokeService.GetWmsClearanceInfo(id);
return res;
}
///
/// 维护预约清关信息
///
///
///
[HttpPost]
[Route("EditWmsClearanceInfo")]
public DataResult EditWmsClearanceInfo([FromBody] WmsClearanceInput model)
{
var res = _invokeService.EditWmsClearanceInfo(model);
return res;
}
///
/// 提交审核
///
///
///
[HttpGet]
[Route("SubmitWmsClearance")]
public DataResult SubmitWmsClearance([FromQuery]string id)
{
var res = _invokeService.SubmitWmsClearance(id);
return res;
}
///
///
///
///
///
[HttpGet]
[Route("GetWmsClearanceGoodsList")]
public DataResult GetWmsClearanceGoodsList([FromQuery]string id)
{
var res = _invokeService.GetWmsClearanceGoodsList(id);
return res;
}
}