using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Code.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
///
/// 集装箱信息服务
///
public class CodeCtnController : ApiController
{
private readonly ICodeCtnService _invokeService;
///
/// 构造函数
///
///
public CodeCtnController(ICodeCtnService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetCodeCtnList")]
public DataResult> GetCodeCtnList([FromBody] PageRequest request)
{
var res = _invokeService.GetClientListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditCodeCtn")]
public DataResult EditCodeCtn([FromBody] CodeCtnReq model)
{
var res = _invokeService.EditClientCodeCtn(model);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetCodeCtnInfo")]
public DataResult GetCodeCtnInfo([FromQuery] string id)
{
var res = _invokeService.GetClientCodeCtnInfo(id);
return res;
}
///
/// 获取集装箱信息列表-基础库
///
///
///
[HttpPost]
[Route("GetBasicsCodeCtnList")]
public DataResult> GetBasicsCodeCtnList([FromBody] PageRequest request)
{
var res = _invokeService.GetCodeCtnList(request);
return res;
}
///
/// 导入集装箱信息类型-基础库
///
///
///
[HttpPost]
[Route("ImportCodeCtn")]
public DataResult ImportCodeCtn([FromBody] IdModel req)
{
var res = _invokeService.ImportCodeCtn(req);
return res;
}
///
/// 获取当前租户已有的集装箱信息
///
///
[HttpGet]
[Route("GetExistCodeCtnList")]
public DataResult> GetExistCodeCtnList()
{
var res = _invokeService.GetExistCodeCtnList();
return res;
}
}