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;
using System.Threading.Tasks;
namespace DS.WMS.OpApi.Controllers;
///
/// 派车信息-服务
///
public class OpBusinessTruckController : ApiController
{
private readonly IOpBusinessTruckService _invokeService;
///
/// 构造函数
///
///
public OpBusinessTruckController(IOpBusinessTruckService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetOpBusinessTruckList")]
public DataResult> GetOpBusinessTruckList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditOpBusinessTruck")]
public DataResult EditOpBusinessTruck([FromBody] OpBusinessTruckReq model)
{
var res = _invokeService.EditOpBusinessTruck(model);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetOpBusinessTruckInfo")]
public DataResult GetOpBusinessTruckInfo([FromQuery] string id)
{
var res = _invokeService.GetOpBusinessTruckInfo(id);
return res;
}
///
/// 批量删除
///
/// 主表Ids
///
[HttpPost]
[Route("BatchDelOpBusinessTruck")]
public DataResult BatchDelOpBusinessTruck([FromBody] IdModel req)
{
var res = _invokeService.BatchDelOpBusinessTruck(req);
return res;
}
///
/// 箱型列表
///
///
///
[HttpPost]
[Route("GetTruckCtnList")]
public DataResult> GetTruckCtnList([FromBody] PageRequest request)
{
var res = _invokeService.GetTruckCtnList(request);
return res;
}
///
/// 批量删除派车箱信息
///
/// 箱型Ids
///
[HttpPost]
[Route("BatchDelTruckCtns")]
public DataResult BatchDelTruckCtns([FromBody] IdModel req)
{
var res = _invokeService.BatchDelTruckCtns(req);
return res;
}
}