using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Info.Dtos; using DS.WMS.Core.Info.Interface; using DS.WMS.Core.Op.Dtos; using DS.WMS.Core.Op.Interface; using DS.WMS.Core.System.Dtos; using DS.WMS.Core.System.Interface; using Microsoft.AspNetCore.Mvc; using Org.BouncyCastle.Ocsp; namespace DS.WMS.OpApi.Controllers; /// /// 海运出口信息-模块 /// public class SeaExportController : ApiController { private readonly ISeaExportService _invokeService; /// /// 构造函数 /// /// public SeaExportController(ISeaExportService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetSeaExportList")] public DataResult> GetSeaExportList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditSeaExport")] public DataResult EditSeaExport([FromBody] SeaExportReq req) { var res = _invokeService.EditSeaExport(req); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetSeaExportInfo")] public DataResult GetSeaExportInfo([FromQuery] string id) { var res = _invokeService.GetSeaExportInfo(id); return res; } /// /// 批量编辑 /// /// /// [HttpPost] [Route("SeaExportBatchEdit")] public DataResult SeaExportBatchEdit([FromBody] SeaExportBatchEditReq req) { var res = _invokeService.SeaExportBatchEdit(req); return res; } /// /// 业务单据删除 /// /// /// [HttpGet] [Route("SeaExportDel")] public DataResult SeaExportDel([FromQuery] string id) { var res = _invokeService.SeaExportDel(id); return res; } /// /// 业务单据批量删除 /// /// /// [HttpPost] [Route("SeaExportBatchDel")] public DataResult SeaExportBatchDel([FromBody] IdModel req) { var res = _invokeService.SeaExportBatchDel(req); return res; } /// /// 获取场站数据 /// /// 业务Id /// 是否网站数据 默认false /// [HttpGet] [Route("GetYardData")] public async Task> GetYardData([FromQuery] string id, bool isWeb = false) { return await _invokeService.GetYardData(id, isWeb); } /// /// 发起运踪订阅或者更新提单号 /// /// /// [HttpPost] [Route("SendOrUpdateTrace")] public async Task> SendOrUpdateTrace([FromBody]List req) { return await _invokeService.SendOrUpdateTrace(req); } /// /// 运踪退订 /// /// /// [HttpPost] [Route("UnsubscribeBillTrace")] public async Task> UnsubscribeBillTrace([FromBody]List req) { return await _invokeService.UnsubscribeBillTrace(req); } /// /// 获取VGM、VGM SI链接 /// /// 业务Id /// [HttpGet] [Route("VgmLink")] public async Task> VgmLink([FromQuery] string id) { return await _invokeService.VgmLink(id); } /// /// 发送VGM /// /// 业务Id /// [HttpGet] [Route("VgmSend")] public async Task> VgmSend([FromQuery] string id) { return await _invokeService.VgmSend(id); } /// /// 批量获取vgm /// /// 业务id 逗号拼接 /// [HttpGet] [Route("GetVmgDataList")] public async Task>> GetVmgDataList([FromQuery] string ids) { return await _invokeService.GetVmgDataList(ids); } /// /// 批量保存vgm /// /// /// [HttpPost] [Route("SaveBatchVgm")] public async Task> SaveBatchVgm([FromBody] List req) { return await _invokeService.SaveBatchVgm(req); } }