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.Map.Dtos;
using DS.WMS.Core.Map.Interface;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers
{
///
/// 航线与港口关系映射信息 模块
///
public class RelationLaneAndPortController : ApiController
{
private readonly IRelationLaneAndPortService _invokeService;
///
/// 构造函数
///
///
public RelationLaneAndPortController(IRelationLaneAndPortService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetRelationLaneAndPortList")]
public DataResult> GetRelationLaneAndPortList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditRelationLaneAndPort")]
public DataResult EditRelationLaneAndPort([FromBody] RelationLaneAndPortReq req)
{
var res = _invokeService.EditRelationLaneAndPort(req);
return res;
}
///
/// 详情
///
/// Id
///
[HttpGet]
[Route("GetRelationLaneAndPortInfo")]
public DataResult GetRelationLaneAndPortInfo([FromQuery] string id)
{
var res = _invokeService.GetRelationLaneAndPortInfo(id);
return res;
}
///
/// 删除
///
/// Id
///
[HttpPost]
[Route("DelRelationLaneAndPort")]
public DataResult DelRelationLaneAndPort([FromBody] IdModel req)
{
var res = _invokeService.DelRelationLaneAndPort(req);
return res;
}
///
///批量删除
///
/// Id
///
[HttpPost]
[Route("BatchDelRelationLaneAndPort")]
public DataResult BatchDelRelationLaneAndPort([FromBody] IdModel req)
{
var res = _invokeService.BatchDelRelationLaneAndPort(req);
return res;
}
}
}