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 RelationForwarderAndPortController : ApiController
{
private readonly IRelationForwarderAndPortService _invokeService;
///
/// 构造函数
///
///
public RelationForwarderAndPortController(IRelationForwarderAndPortService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetRelationForwarderAndPortList")]
public DataResult> GetRelationForwarderAndPortList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditRelationForwarderAndPort")]
public DataResult EditRelationForwarderAndPort([FromBody] RelationForwarderAndPortReq req)
{
var res = _invokeService.EditRelationForwarderAndPort(req);
return res;
}
///
/// 详情
///
/// Id
///
[HttpGet]
[Route("GetRelationForwarderAndPortInfo")]
public DataResult GetRelationForwarderAndPortInfo([FromQuery] string id)
{
var res = _invokeService.GetRelationForwarderAndPortInfo(id);
return res;
}
///
/// 删除
///
/// Id
///
[HttpPost]
[Route("DelRelationForwarderAndPort")]
public DataResult DelRelationForwarderAndPort([FromBody] IdModel req)
{
var res = _invokeService.DelRelationForwarderAndPort(req);
return res;
}
///
///批量删除
///
/// Id
///
[HttpPost]
[Route("BatchDelRelationForwarderAndPort")]
public DataResult BatchDelRelationForwarderAndPort([FromBody] IdModel req)
{
var res = _invokeService.BatchDelRelationForwarderAndPort(req);
return res;
}
}
}