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 MappingCarrierController : ApiController
{
private readonly IMappingCarrierService _invokeService;
///
/// 构造函数
///
///
public MappingCarrierController(IMappingCarrierService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetMappingCarrierList")]
public DataResult> GetMappingCarrierList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditMappingCarrier")]
public DataResult EditMappingCarrier([FromBody] MappingCarrierReq req)
{
var res = _invokeService.EditMappingCarrier(req);
return res;
}
///
/// 详情
///
/// Id
///
[HttpGet]
[Route("GetMappingCarrierInfo")]
public DataResult GetMappingCarrierInfo([FromQuery] string id)
{
var res = _invokeService.GetMappingCarrierInfo(id);
return res;
}
///
/// 删除
///
/// Id
///
[HttpPost]
[Route("DelMappingCarrier")]
public DataResult DelMappingCarrier([FromBody] IdModel req)
{
var res = _invokeService.DelMappingCarrier(req);
return res;
}
///
///批量删除
///
/// Id
///
[HttpPost]
[Route("BatchDelMappingCarrier")]
public DataResult BatchDelMappingCarrier([FromBody] IdModel req)
{
var res = _invokeService.BatchDelMappingCarrier(req);
return res;
}
}
}