using DS.Module.Core;
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;
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;
}
}