huanghongfeng
2025-01-16 77864cf547c716d4dca35e735636013dbc4dc033
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Common;
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("AddInboundOrders"), AllowAnonymous]
        public WebResponseContent AddInboundOrders([FromBody] HouseInbound orderAddDTO)
        {
            return Service.AddInboundOrders(orderAddDTO);
        }
        [HttpPost, Route("InventoryIn"), AllowAnonymous]
        public WebResponseContent InventoryIn([FromBody] string name)
        {
            return Service.InventoryIn(name);
        }   
 
        [HttpPost, Route("CancelIn"), AllowAnonymous]
        public WebResponseContent CancelIn([FromBody] HouseCancelIn  houseCancelIn)
        {
            return Service.CancelIn(houseCancelIn);
        }
 
    }
}