using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using SkiaSharp; using WIDESEA_Core; using WIDESEA_Core.BaseController; using WIDESEA_DTO.Basic; using WIDESEA_IBasicService; using WIDESEA_Model.Models; namespace WIDESEA_WMSServer.Controllers.Basic { [Route("api/[controller]")] [ApiController] public class PalletCodeInfoController : ApiBaseController { public PalletCodeInfoController(IPalletCodeInfoService service) : base(service) { } /// /// 生成条码 /// /// /// [HttpPost, Route("newBarcodeLib"), AllowAnonymous] public string newBarcodeLib(int key) { return Service.newBarcodeLib(key); } /// /// 生成条码 /// /// /// [HttpPost, Route("newBarcodeLib1"), AllowAnonymous] public string newBarcodeLib1([FromBody] palletCodeInfoDTO palletCodeInfo) { return Service.newBarcodeLib(palletCodeInfo); } /// /// 打印条码 /// /// /// [HttpPost, Route("PrintBarcodeLib"), AllowAnonymous] public WebResponseContent PrintBarcodeLib([FromBody] List keys) { return Service.PrintBarcodeLib(keys); } } }