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 OpCtnDetailController : ApiController
{
private readonly IOpCtnDetailService _invokeService;
///
/// 构造函数
///
///
public OpCtnDetailController(IOpCtnDetailService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetOpCtnDetailList")]
public DataResult> GetOpCtnDetailList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("SaveOpCtnDetail")]
public DataResult SaveOpCtnDetail([FromBody] BatchEditCtnDetailReq req)
{
var res = _invokeService.SaveOpCtnDetail(req);
return res;
}
///
/// 批量删除
///
///
///
[HttpPost]
[Route("BatchDelOpCtnDetail")]
public DataResult BatchDelOpCtnDetail([FromBody] IdModel req)
{
var res = _invokeService.BatchDelOpCtnDetail(req);
return res;
}
}