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

38 lines
910 B
C#
Raw Normal View History

using Microsoft.AspNetCore.Mvc;
2024-10-07 09:51:55 +08:00
using WcsMain.ApiServe.ControllerFilter;
using WcsMain.ApiServe.ControllerFilter.ExceptionFilter;
using WcsMain.ApiServe.Dto;
using WcsMain.ApiServe.Dto.WcsDto.Scan;
2024-10-07 09:51:55 +08:00
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);
}