1
huangxiaoqiang
5 天以前 85d9ca4ec972ce4d020db046d930e8991709ae2d
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/BoxingInfoController.cs
@@ -1,4 +1,6 @@
锘縩amespace WIDESEA_WMSServer.Controllers;
锘縰sing WIDESEA_DTO.Basic;
namespace WIDESEA_WMSServer.Controllers;
[Route("api/[controller]")]
[ApiController]
@@ -7,11 +9,31 @@
    public BoxingInfoController(IBoxingInfoService service) : base(service)
    {
    }
    // POST api/<BoxingInfoController>
    [HttpPost, Route("AddBoxingInfo"), AllowAnonymous]
    public Task<WebResponseContent> AddBoxingInfoAsync([FromBody] DtBoxingInfo boxingInfo)
    /// <summary>
    /// 缁勭洏
    /// </summary>
    /// <param name="groupPlate"></param>
    /// <returns></returns>
    [HttpPost, HttpGet, Route("AddGroupPlateAsync"), AllowAnonymous]
    public Task<WebResponseContent> AddGroupPlateAsync([FromBody] GroupPlate groupPlate)
    {
        return Service.AddBoxingInfoAsync(boxingInfo);
        return Service.AddGroupPlateAsync(groupPlate);
    }
    [HttpPost, HttpGet, Route("GetPalletCodeInfo"), AllowAnonymous]
    public Task<WebResponseContent> GetPalletCodeInfo(string palletCode)
    {
        return Service.GetPalletCodeInfo(palletCode);
    }
    /// <summary>
    /// 瑙g洏
    /// </summary>
    /// <param name="groupPlate"></param>
    /// <returns></returns>
    [HttpPost, HttpGet, Route("DeleteGroupPlateAsync"), AllowAnonymous]
    public async Task<WebResponseContent> DeleteGroupPlateAsync([FromBody] GroupPlate groupPlate)
    {
        return await Service.DeleteGroupPlateAsync(groupPlate);
    }
}