using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Mvc;
|
using Newtonsoft.Json;
|
using WIDESEA_Core;
|
using WIDESEA_Core.BaseController;
|
using WIDESEA_DTO.Inbound;
|
using WIDESEA_IInboundService;
|
using WIDESEA_Model;
|
using WIDESEA_Model.Models;
|
using WIDESEA_Model.Models.System.Request;
|
|
namespace WIDESEA_WMSServer.Controllers.Inbound
|
{
|
[Route("api/InboundOrder")]
|
[ApiController]
|
public class InboundOrderController : ApiBaseController<IInboundOrderService, Dt_InboundOrder>
|
{
|
public InboundOrderController(IInboundOrderService service) : base(service)
|
{
|
}
|
|
[HttpPost, Route("AddInboundOrder"), AllowAnonymous]
|
public WebResponseContent AddInboundOrder([FromBody] InboundOrderAddDTO orderAddDTO)
|
{
|
return Service.AddInboundOrder(orderAddDTO);
|
}
|
|
[HttpPost, Route("GetInboundOrder"), AllowAnonymous]
|
public WebResponseContent GetInboundOrder([FromBody] InboundOrderGetDTO inboundOrderGetDTO)
|
{
|
return Service.GetInboundOrder(inboundOrderGetDTO);
|
}
|
[HttpPost, Route("GetInboundOrderDetail"), AllowAnonymous]
|
public WebResponseContent GetInboundOrderDetail([FromBody] string OrderNo)
|
{
|
return Service.GetInboundOrderDetail(OrderNo);
|
}
|
|
/// <summary>
|
/// 立库退回信息接口,供上游系统调用,立库生成退货任务
|
/// </summary>
|
/// <returns></returns>
|
[HttpPost, Route("returnInventory"), AllowAnonymous]
|
public ReturnInventoryResponse returnInventory([FromBody] string inventoryRequest)
|
{
|
|
return Service.returnInventory(inventoryRequest);
|
}
|
}
|
}
|