| | |
| | | } |
| | | } |
| | | }, |
| | | "/v1/device/config": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "设备" |
| | | ], |
| | | "summary": "设置设备一些配置", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.DeviceConfig" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/v1/device/list": { |
| | | "get": { |
| | | "produces": [ |
| | |
| | | "summary": "获取任务", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "name": "deviceID", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "页码", |
| | | "name": "page", |
| | |
| | | "type": "string", |
| | | "enum": [ |
| | | "string", |
| | | "int" |
| | | "int16", |
| | | "int32" |
| | | ], |
| | | "x-enum-varnames": [ |
| | | "PlcStartAddressValueTypeString", |
| | | "PlcStartAddressValueTypeInt" |
| | | "PlcStartAddressValueTypeInt16", |
| | | "PlcStartAddressValueTypeInt32" |
| | | ] |
| | | }, |
| | | "constvar.ProblemCode": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.DeviceConfig": { |
| | | "type": "object", |
| | | "properties": { |
| | | "needSetProcessParams": { |
| | | "description": "是否需要设置工艺参数", |
| | | "type": "boolean" |
| | | } |
| | | } |
| | | }, |
| | | "request.GetProductProgress": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "response.Device": { |
| | | "type": "object", |
| | | "properties": { |
| | | "deviceID": { |
| | | "type": "string" |
| | | }, |
| | | "deviceName": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "response.DeviceListResponse": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "description": "当前选定的生产设备", |
| | | "type": "string" |
| | | }, |
| | | "deviceIDList": { |
| | | "deviceList": { |
| | | "description": "生产设备id列表", |
| | | "type": "array", |
| | | "items": { |
| | | "type": "string" |
| | | "$ref": "#/definitions/response.Device" |
| | | } |
| | | }, |
| | | "systemDeviceID": { |