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 MappingPackageController : ApiController
{
private readonly IMappingPackageService _invokeService;
///
/// 构造函数
///
///
public MappingPackageController(IMappingPackageService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetMappingPackageList")]
public DataResult> GetMappingPackageList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditMappingPackage")]
public DataResult EditMappingPackage([FromBody] MappingPackageReq req)
{
var res = _invokeService.EditMappingPackage(req);
return res;
}
///
/// 详情
///
/// Id
///
[HttpGet]
[Route("GetMappingPackageInfo")]
public DataResult GetMappingPackageInfo([FromQuery] string id)
{
var res = _invokeService.GetMappingPackageInfo(id);
return res;
}
///
/// 删除
///
/// Id
///
[HttpPost]
[Route("DelMappingPackage")]
public DataResult DelMappingPackage([FromBody] IdModel req)
{
var res = _invokeService.DelMappingPackage(req);
return res;
}
///
///批量删除
///
/// Id
///
[HttpPost]
[Route("BatchDelMappingPackage")]
public DataResult BatchDelMappingPackage([FromBody] IdModel req)
{
var res = _invokeService.BatchDelMappingPackage(req);
return res;
}
}
}