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.
51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
using DS.Module.Core;
|
|
using DS.WMS.Core.Flow.Dtos;
|
|
using DS.WMS.Core.Op.Dtos;
|
|
using DS.WMS.Core.Op.Interface;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace DS.WMS.OpApi.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 海运出口退舱服务
|
|
/// </summary>
|
|
public class SeaExportRefundController : ApiController
|
|
{
|
|
private readonly ISeaExportRefundService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public SeaExportRefundController(ISeaExportRefundService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 创建退舱任务
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("CreateRefundTask")]
|
|
public async Task<DataResult> CreateRefundTaskAsync([FromBody] RefundTaskReq req)
|
|
{
|
|
var res =await _invokeService.CreateRefundTaskAsync(req);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 退仓审核完成回调
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("RefundAuditCallback")]
|
|
public async Task<DataResult> RefundAuditCallbackAsync([FromBody] FlowCallback req)
|
|
{
|
|
var res = await _invokeService.RefundAuditCallbackAsync(req);
|
|
return res;
|
|
}
|
|
|
|
}
|
|
} |