using DS.Module.Core;
using DS.WMS.Core.Op.Dtos;
using DS.WMS.Core.Op.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.OpApi.Controllers
{
///
/// 海运出口备注信息服务
///
public class SeaExportRemarkController : ApiController
{
private readonly ISeaExportRemarkService _invokeService;
///
/// 构造函数
///
///
public SeaExportRemarkController(ISeaExportRemarkService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetSeaExportRemarkList")]
public DataResult> GetSeaExportRemarkList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditSeaExportRemark")]
public DataResult EditSeaExportRemark([FromBody] SeaExportRemarkReq model)
{
var res = _invokeService.EditSeaExportRemark(model);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetSeaExportRemarkInfo")]
public DataResult GetSeaExportRemarkInfo([FromQuery] string id)
{
var res = _invokeService.GetSeaExportRemarkInfo(id);
return res;
}
///
/// 删除
///
///
///
[HttpGet]
[Route("DelSeaExportRemark")]
public DataResult DelSeaExportRemark([FromQuery] string id)
{
var res = _invokeService.DelSeaExportRemark(id);
return res;
}
}
}