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.Op.Dtos;
using DS.WMS.Core.Op.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.OpApi.Controllers;
///
/// 舱单分票-服务
///
public class ShippingBillPartCtnController : ApiController
{
private readonly IShippingBillPartCtnService _invokeService;
///
/// 构造函数
///
///
public ShippingBillPartCtnController(IShippingBillPartCtnService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetShippingBillPartCtnList")]
public DataResult> GetShippingBillPartCtnList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 批量删除
///
///
///
[HttpPost]
[Route("BatchDelShippingBillPartCtn")]
public DataResult BatchDelShippingBillPartCtn([FromBody] IdModel req)
{
var res = _invokeService.BatchDelShippingBillPartCtn(req);
return res;
}
///
/// 舱单分票编辑
///
///
///
[HttpPost]
[Route("EditShippingBillPartCtn")]
public DataResult EditShippingBillPartCtn([FromBody] ShippingBillPartCtnMainReq req)
{
var res = _invokeService.EditShippingBillPartCtn(req);
return res;
}
}