js nestjs swagger { callPoint: [ { callPointName: 'loadPoint1', plcWriteCallPointIntervel: undefined, plcWriteTaskCompleteIntervel: undefined }, { callPointName: 'loadPoint2', plcWriteCallPointIntervel: undefined, plcWriteTaskCompleteIntervel: undefined }, { callPointName: 'paintPoint', plcWriteCallPointIntervel: undefined, plcWriteTaskCompleteIntervel: undefined } ], unloadPoint: [ { unloadPointName: 'unloadPoint1', plcWritelackEmptyTrayStatusIntervel: undefined, plcWritelineMaterialStatusIntervel: undefined }, { unloadPointName: 'unloadPoint2', plcWritelackEmptyTrayStatusIntervel: undefined, plcWritelineMaterialStatusIntervel: undefined }, { unloadPointName: 'ironPoint', plcWritelackEmptyTrayStatusIntervel: undefined, plcWritelineMaterialStatusIntervel: undefined } ], scanCodeWs: [ { scanCodeWsName: 'area_material1', plcWriteWsInUseIntervel: undefined }, { scanCodeWsName: 'area_material2', plcWriteWsInUseIntervel: undefined }, { scanCodeWsName: 'area_material3', plcWriteWsInUseIntervel: undefined }, { scanCodeWsName: 'area_material4', plcWriteWsInUseIntervel: undefined }, { scanCodeWsName: 'area_material5', plcWriteWsInUseIntervel: undefined }, { scanCodeWsName: 'area_material6', plcWriteWsInUseIntervel: undefined } ] } 返回没有undefind
时间: 2024-02-14 22:20:36 浏览: 47
swagger:用于Nest框架(node.js)的OpenAPI(Swagger)模块
这段代码是一个 JavaScript 对象,包含了三个属性,分别是 callPoint、unloadPoint 和 scanCodeWs。每个属性都是一个数组,包含了多个对象,每个对象描述了一个对应的工作站,包括工作站名称和一些时间间隔参数。这里的差别是与之前的代码相比,这里的参数都不是 undefined,而是具体的数值或值。这可能是因为在 NestJS 中,对这些参数进行了默认值或初始化,所以不会出现 undefined 的情况。
阅读全文