dengjunjie
2025-02-17 2bdad959bc30a7c24bf08ca81fb52fff63e79f52
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
45
46
47
48
49
50
51
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);
        }
    }
}