Product_Wms/WcsMain/ApiServe/Controllers/WcsController/ScanController.cs

39 lines
967 B
C#

using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WcsMain.ApiServe.ControllerFilter;
using WcsMain.ApiServe.ControllerFilter.ExceptionFilter;
using WcsMain.ApiServe.Controllers.Dto;
using WcsMain.ApiServe.Controllers.Dto.WcsDto.Scan;
using WcsMain.ApiServe.Service.WcsService;
using WcsMain.DataBase.TableEntity;
namespace WcsMain.ApiServe.Controllers.WcsController;
/// <summary>
/// 扫码器相关接口
/// </summary>
[Route("api/wcs/scan")]
[ApiController]
[WcsExceptionFilter]
[WcsAuthorization]
public class ScanController(ScanService scanService) : ControllerBase
{
/// <summary>
/// 分页查询扫码记录
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost("queryScanRecordWithPage")]
public WcsApiResponse<int, List<AppScanRecord>> QueryScanRecordWithPage([FromBody] QueryScanRecordWithPageRequest request) => scanService.QueryScanRecordWithPage(request);
}