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 { /// /// 海运出口退舱服务 /// public class SeaExportRefundController : ApiController { private readonly ISeaExportRefundService _invokeService; /// /// 构造函数 /// /// public SeaExportRefundController(ISeaExportRefundService invokeService) { _invokeService = invokeService; } /// /// 创建退舱任务 /// /// /// [HttpPost] [Route("CreateRefundTask")] public async Task CreateRefundTaskAsync([FromBody] RefundTaskReq req) { var res =await _invokeService.CreateRefundTaskAsync(req); return res; } /// /// 退仓审核完成回调 /// /// /// [HttpPost] [Route("RefundAuditCallback")] public async Task RefundAuditCallbackAsync([FromBody] FlowCallback req) { var res = await _invokeService.RefundAuditCallbackAsync(req); return res; } } }