| | |
| | | x-enum-varnames: |
| | | - PlcStartAddressValueTypeString |
| | | - PlcStartAddressValueTypeInt |
| | | constvar.ProblemCode: |
| | | enum: |
| | | - service |
| | | - network |
| | | - db |
| | | - serf |
| | | - nsq |
| | | - device |
| | | - process_model |
| | | - plc_config |
| | | - plc_address_list |
| | | - plc_process_model_address_list |
| | | - plc_connect |
| | | type: string |
| | | x-enum-comments: |
| | | ProblemCodeDB: 数据库连接错误 |
| | | ProblemCodeDevice: 未绑定设备 |
| | | ProblemCodeNetwork: 网络错误 |
| | | ProblemCodeNsq: 未连接消息队列 |
| | | ProblemCodePlcAddressList: plc地址表缺失 |
| | | ProblemCodePlcConfig: plc配置缺失 |
| | | ProblemCodePlcConnect: plc连接失败 |
| | | ProblemCodePlcProcessModelAddressList: plc地址表缺失 |
| | | ProblemCodeProcessModel: 工艺参数缺失 |
| | | ProblemCodeSerf: 未加入serf集群 |
| | | ProblemCodeService: 服务不可用 |
| | | x-enum-varnames: |
| | | - ProblemCodeService |
| | | - ProblemCodeNetwork |
| | | - ProblemCodeDB |
| | | - ProblemCodeSerf |
| | | - ProblemCodeNsq |
| | | - ProblemCodeDevice |
| | | - ProblemCodeProcessModel |
| | | - ProblemCodePlcConfig |
| | | - ProblemCodePlcAddressList |
| | | - ProblemCodePlcProcessModelAddressList |
| | | - ProblemCodePlcConnect |
| | | constvar.TaskMode: |
| | | enum: |
| | | - 1 |
| | |
| | | updatedAt: |
| | | type: string |
| | | type: object |
| | | problem.CheckResult: |
| | | properties: |
| | | checkResult: |
| | | type: boolean |
| | | itemCode: |
| | | $ref: '#/definitions/constvar.ProblemCode' |
| | | itemName: |
| | | type: string |
| | | type: object |
| | | request.AddPlcBrand: |
| | | properties: |
| | | createdAt: |
| | |
| | | type: object |
| | | response.ProductProgress: |
| | | properties: |
| | | RealEndTime: |
| | | type: integer |
| | | RealStartTime: |
| | | type: integer |
| | | finishNumber: |
| | | type: integer |
| | | plcStatus: |
| | |
| | | summary: 获取工艺模型列表 |
| | | tags: |
| | | - 工艺模型 |
| | | /v1/system/problemList: |
| | | get: |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/contextx.Response' |
| | | - properties: |
| | | data: |
| | | items: |
| | | $ref: '#/definitions/problem.CheckResult' |
| | | type: array |
| | | type: object |
| | | summary: 问题诊断/问题列表 |
| | | tags: |
| | | - 系统 |
| | | /v1/task/countdown: |
| | | get: |
| | | produces: |