You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.9 KiB
C#

2 years ago
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;
/// <summary>
/// 预约清关
/// </summary>
public class WmsClearanceController : ApiController
{
private readonly IWmsClearanceService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public WmsClearanceController(IWmsClearanceService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 预约清关列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetWmsClearanceList")]
public DataResult<List<WmsClearanceListPageModel>> GetWmsClearanceList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 获取预约清关信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetWmsClearanceInfo")]
public DataResult<WmsClearanceInfoViewModel> GetWmsClearanceInfo([FromQuery]string id)
{
var res = _invokeService.GetWmsClearanceInfo(id);
return res;
}
/// <summary>
/// 审批
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpGet]
[Route("AuditWmsClearance")]
public DataResult AuditWmsClearance([FromBody] CommonAuditInput model)
{
var res = _invokeService.AuditWmsClearance(model);
return res;
}
/// <summary>
///
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetWmsClearanceGoodsList")]
public DataResult GetWmsClearanceGoodsList([FromQuery]string id)
{
var res = _invokeService.GetWmsClearanceGoodsList(id);
return res;
}
}