using DS.Module.Core;
using DS.WMS.Core.BaseInfo.Dtos;
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("AuditWmsClearance")]
public DataResult AuditWmsClearance([FromBody] CommonAuditInput model)
{
var res = _invokeService.AuditWmsClearance(model);
return res;
}
///
///
///
///
///
[HttpGet]
[Route("GetWmsClearanceGoodsList")]
public DataResult GetWmsClearanceGoodsList([FromQuery]string id)
{
var res = _invokeService.GetWmsClearanceGoodsList(id);
return res;
}
///
/// 维护清关车辆信息
///
///
///
[HttpPost]
[Route("EditWmsClearanceTrunckInfo")]
public DataResult EditWmsClearanceTrunckInfo([FromBody] WmsClearanceInput model)
{
var res = _invokeService.EditWmsClearanceTrunckInfo(model);
return res;
}
}