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.5 KiB
C#
51 lines
1.5 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("CreateRefundAuditTask")]
|
|
public async Task<DataResult> CreateRefundAuditTaskAsync([FromBody] RefundTaskReq req)
|
|
{
|
|
var res =await _invokeService.CreateRefundAuditTaskAsync(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;
|
|
}
|
|
|
|
}
|
|
} |