using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Mvc;
|
using WIDESEA_Core;
|
using WIDESEA_Core.BaseController;
|
using WIDESEA_DTO.Inbound;
|
using WIDESEA_IInboundService;
|
using WIDESEA_Model.Models;
|
|
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("MaterielGroup")]
|
public WebResponseContent MaterielGroup([FromBody] MaterielGroupDTO materielGroupDTO)
|
{
|
return Service.MaterielGroup(materielGroupDTO);
|
}
|
}
|
}
|