fix
zhangqian
2023-11-09 cacf363f222e354cad6db18c4a00fb1097d35c2c
docs/docs.go
@@ -152,6 +152,36 @@
                }
            }
        },
        "/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": [
@@ -229,7 +259,7 @@
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.SendProcessParams"
                            "$ref": "#/definitions/request.GetProductProgress"
                        }
                    }
                ],
@@ -554,11 +584,6 @@
                ],
                "summary": "获取任务",
                "parameters": [
                    {
                        "type": "string",
                        "name": "deviceID",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
@@ -953,11 +978,13 @@
            "type": "string",
            "enum": [
                "string",
                "int"
                "int16",
                "int32"
            ],
            "x-enum-varnames": [
                "PlcStartAddressValueTypeString",
                "PlcStartAddressValueTypeInt"
                "PlcStartAddressValueTypeInt16",
                "PlcStartAddressValueTypeInt32"
            ]
        },
        "constvar.ProblemCode": {
@@ -967,7 +994,7 @@
                "network",
                "db",
                "serf",
                "nsq",
                "cloud",
                "device",
                "process_model",
                "plc_config",
@@ -976,10 +1003,10 @@
                "plc_connect"
            ],
            "x-enum-comments": {
                "ProblemCodeCloud": "未连接云端",
                "ProblemCodeDB": "数据库连接错误",
                "ProblemCodeDevice": "未绑定设备",
                "ProblemCodeNetwork": "网络错误",
                "ProblemCodeNsq": "未连接消息队列",
                "ProblemCodePlcAddressList": "plc地址表缺失",
                "ProblemCodePlcConfig": "plc配置缺失",
                "ProblemCodePlcConnect": "plc连接失败",
@@ -993,7 +1020,7 @@
                "ProblemCodeNetwork",
                "ProblemCodeDB",
                "ProblemCodeSerf",
                "ProblemCodeNsq",
                "ProblemCodeCloud",
                "ProblemCodeDevice",
                "ProblemCodeProcessModel",
                "ProblemCodePlcConfig",
@@ -1441,6 +1468,23 @@
                }
            }
        },
        "request.DeviceConfig": {
            "type": "object",
            "properties": {
                "needSetProcessParams": {
                    "description": "是否需要设置工艺参数",
                    "type": "boolean"
                }
            }
        },
        "request.GetProductProgress": {
            "type": "object",
            "properties": {
                "channel": {
                    "type": "integer"
                }
            }
        },
        "request.QueryType": {
            "type": "integer",
            "enum": [
@@ -1562,6 +1606,21 @@
                }
            }
        },
        "response.Device": {
            "type": "object",
            "properties": {
                "deviceID": {
                    "type": "string"
                },
                "deviceName": {
                    "type": "string"
                },
                "needSetProcessParams": {
                    "description": "是否需要设置工艺参数",
                    "type": "boolean"
                }
            }
        },
        "response.DeviceListResponse": {
            "type": "object",
            "properties": {
@@ -1577,11 +1636,11 @@
                    "description": "当前选定的生产设备",
                    "type": "string"
                },
                "deviceIDList": {
                "deviceList": {
                    "description": "生产设备id列表",
                    "type": "array",
                    "items": {
                        "type": "string"
                        "$ref": "#/definitions/response.Device"
                    }
                },
                "systemDeviceID": {