using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Code.Interface;
using DS.WMS.Core.Op.Dtos;
using DS.WMS.Core.Op.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.OpApi.Controllers;
///
/// 海运出口提单信息服务
///
public class SeaExportBillManageController : ApiController
{
private readonly ISeaExportBillManageService _invokeService;
///
/// 构造函数
///
///
public SeaExportBillManageController(ISeaExportBillManageService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetSeaExportBillManageList")]
public DataResult> GetSeaExportBillManageList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditSeaExportBillManage")]
public DataResult EditSeaExportBillManage([FromBody] SeaExportBillManageReq model)
{
var res = _invokeService.EditSeaExportBillManage(model);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetSeaExportBillManageInfo")]
public DataResult GetSeaExportBillManageInfo([FromQuery] string id)
{
var res = _invokeService.GetSeaExportBillManageInfo(id);
return res;
}
///
/// 提单箱信息列表
///
///
///
[HttpPost]
[Route("GetBillManageCtnList")]
public DataResult> GetBillManageCtnList([FromBody] PageRequest request)
{
var res = _invokeService.GetBillManageCtnList(request);
return res;
}
///
/// 批量删除提单
///
/// 主表Ids
///
[HttpPost]
[Route("BatchDelBillManage")]
public DataResult BatchDelBillManage([FromBody] IdModel req)
{
var res = _invokeService.BatchDelBillManage(req);
return res;
}
///
/// 批量删除提单箱信息
///
/// 主表Id及箱信息Ids
///
[HttpPost]
[Route("BatchDelBillManageCtn")]
public DataResult BatchDelBillManageCtn([FromBody] IdModel req)
{
var res = _invokeService.BatchDelBillManageCtn(req);
return res;
}
///
/// 历史引入查询列表
///
///
///
[HttpPost]
[Route("GetBillManageHistoryList")]
public DataResult> GetBillManageHistoryList([FromBody] PageRequest request)
{
var res = _invokeService.GetBillManageHistoryList(request);
return res;
}
///
/// 历史引入提单信息
///
/// 主表Id及历史提单Ids
///
[HttpPost]
[Route("ImportBillManageHistory")]
public async Task ImportBillManageHistory([FromBody] IdModel req)
{
var res = await _invokeService.ImportBillManageHistory(req);
return res;
}
}