using System.Dynamic; using MES.Service.Dto.service; using MES.Service.service.Warehouse; using MES.Service.util; using Microsoft.AspNetCore.Mvc; namespace MESApplication.Controllers.Warehouse; [ApiController] [Route("api/[controller]")] public class OrganizeController : ControllerBase { private readonly OrganizeService m = new(); [HttpPost("GetOrganizes")] public ResponseResult GetOrganizes() { try { dynamic resultInfos = new ExpandoObject(); resultInfos.tbBillList = m.GetOrganizes(); return new ResponseResult { status = 0, message = "OK", data = resultInfos }; } catch (Exception ex) { return ResponseResult.ResponseError(ex); } } [HttpPost("GetBarcodeQcok")] public ResponseResult GetBarcodeQcok(WarehouseQuery query) { try { dynamic resultInfos = new ExpandoObject(); resultInfos.tbBillList = m.GetBarcodeQcok(query); return new ResponseResult { status = 0, message = "OK", data = resultInfos }; } catch (Exception ex) { return ResponseResult.ResponseError(ex); } } }