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<IPalletCodeInfoService, Dt_PalletCodeInfo>
|
{
|
public PalletCodeInfoController(IPalletCodeInfoService service) : base(service)
|
{
|
}
|
/// <summary>
|
/// 生成条码
|
/// </summary>
|
/// <param name="palletCodeInfo"></param>
|
/// <returns></returns>
|
[HttpPost, Route("newBarcodeLib"), AllowAnonymous]
|
public string newBarcodeLib(int key)
|
{
|
return Service.newBarcodeLib(key);
|
}
|
/// <summary>
|
/// 生成条码
|
/// </summary>
|
/// <param name="palletCodeInfo"></param>
|
/// <returns></returns>
|
[HttpPost, Route("newBarcodeLib1"), AllowAnonymous]
|
public string newBarcodeLib1([FromBody] palletCodeInfoDTO palletCodeInfo)
|
{
|
return Service.newBarcodeLib(palletCodeInfo);
|
}
|
/// <summary>
|
/// 打印条码
|
/// </summary>
|
/// <param name="keys"></param>
|
/// <returns></returns>
|
[HttpPost, Route("PrintBarcodeLib"), AllowAnonymous]
|
public WebResponseContent PrintBarcodeLib([FromBody] List<int> keys)
|
{
|
return Service.PrintBarcodeLib(keys);
|
}
|
}
|
}
|