using Autofac.Core;
using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.ContainerManagement.Info.Dtos;
using DS.WMS.ContainerManagement.Info.Entity;
using DS.WMS.ContainerManagement.Info.Interface;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Op.Dtos;
using DS.WMS.Core.Op.Interface;
using DS.WMS.Core.Op.View;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.ContainerManagementApi.Controllers;
///
/// 箱基础信息
///
public class CM_BaseInfoController : ApiController
{
private readonly ICM_BaseInfoService _invokeService;
///
/// 构造函数
///
///
public CM_BaseInfoController(ICM_BaseInfoService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetCM_BaseInfoList")]
public async Task>> GetCM_State_ChangeList([FromBody] PageRequest request)
{
var res = await _invokeService.GetListByPage(request);
return res;
}
///
/// 直接编辑状态
///
///
[HttpPost]
[Route("EditCM_BaseInfo")]
public DataResult EditCM_BaseInfo([FromBody] CM_BaseInfoReq model)
{
var res = _invokeService.EditCM_BaseInfo(model);
return res;
}
///
/// 查看详情
///
///
///
[HttpGet]
[Route("GetCM_BaseInfo")]
public DataResult GetCM_BaseInfo([FromQuery] string id)
{
var res = _invokeService.GetCM_BaseInfo(id);
return res;
}
///
/// 校验箱号
///
///
[HttpPost]
[Route("CM_CheckCntrno")]
public DataResult CM_CheckCntrno([FromBody] CM_CheckCntrno model)
{
var res = _invokeService.CM_CheckCntrno(model);
return res;
}
///
/// 处理附件
///
///
[HttpPost]
[Route("CM_DealExcel")]
public async Task CM_DealExcel([FromBody] CM_DealExcelReq model)
{
var res = await _invokeService.CM_DealExcel(model);
return res;
}
///
/// 推进状态
///
///
[HttpPost]
[Route("CM_PushFormStatus")]
public async Task CM_PushFormStatus([FromBody] CM_PushFormStatusReq model)
{
var res = await _invokeService.CM_PushFormStatus(model);
return res;
}
}