zhangqian
2023-11-25 efec800478214f3a412f879d2b51c2968515995d
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": [
@@ -451,6 +481,81 @@
                }
            }
        },
        "/v1/reportWork/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "报工"
                ],
                "summary": "报工列表",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.ReportWorkList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.ReportWork"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/v1/reportWork/report": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "报工"
                ],
                "summary": "上报",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.ReportWork"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/v1/system/problemList": {
            "get": {
                "produces": [
@@ -554,11 +659,6 @@
                ],
                "summary": "获取任务",
                "parameters": [
                    {
                        "type": "string",
                        "name": "deviceID",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
@@ -953,11 +1053,13 @@
            "type": "string",
            "enum": [
                "string",
                "int"
                "int16",
                "int32"
            ],
            "x-enum-varnames": [
                "PlcStartAddressValueTypeString",
                "PlcStartAddressValueTypeInt"
                "PlcStartAddressValueTypeInt16",
                "PlcStartAddressValueTypeInt32"
            ]
        },
        "constvar.ProblemCode": {
@@ -1029,6 +1131,21 @@
                "data": {},
                "msg": {
                    "type": "string"
                }
            }
        },
        "contextx.ResponseList": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer"
                },
                "data": {},
                "msg": {
                    "type": "string"
                },
                "total": {
                    "type": "integer"
                }
            }
        },
@@ -1407,6 +1524,57 @@
                }
            }
        },
        "model.ReportWork": {
            "type": "object",
            "properties": {
                "channel": {
                    "description": "通道",
                    "type": "integer"
                },
                "createdAt": {
                    "type": "string"
                },
                "deletedAt": {
                    "type": "string"
                },
                "deviceId": {
                    "type": "string"
                },
                "deviceName": {
                    "type": "string"
                },
                "endTime": {
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "procedureId": {
                    "type": "string"
                },
                "proceduresId": {
                    "description": "procedures表的id",
                    "type": "integer"
                },
                "startTime": {
                    "type": "integer"
                },
                "updatedAt": {
                    "type": "string"
                },
                "workOrderId": {
                    "type": "string"
                },
                "workerID": {
                    "description": "报工人id",
                    "type": "string"
                },
                "workerName": {
                    "description": "报工人姓名",
                    "type": "string"
                }
            }
        },
        "problem.CheckResult": {
            "type": "object",
            "properties": {
@@ -1441,6 +1609,15 @@
                }
            }
        },
        "request.DeviceConfig": {
            "type": "object",
            "properties": {
                "needSetProcessParams": {
                    "description": "是否需要设置工艺参数",
                    "type": "boolean"
                }
            }
        },
        "request.GetProductProgress": {
            "type": "object",
            "properties": {
@@ -1461,6 +1638,48 @@
                "QueryTypeToday",
                "QueryTypeFinished"
            ]
        },
        "request.ReportWork": {
            "type": "object",
            "required": [
                "procedureId",
                "reportAmount",
                "workerID"
            ],
            "properties": {
                "procedureId": {
                    "description": "工序id",
                    "type": "integer"
                },
                "reportAmount": {
                    "description": "报工数量",
                    "type": "integer"
                },
                "workerID": {
                    "description": "报告者id",
                    "type": "string"
                }
            }
        },
        "request.ReportWorkList": {
            "type": "object",
            "required": [
                "procedureId"
            ],
            "properties": {
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "procedureId": {
                    "description": "工序id",
                    "type": "integer"
                }
            }
        },
        "request.SendProcessParams": {
            "type": "object",
@@ -1570,6 +1789,21 @@
                }
            }
        },
        "response.Device": {
            "type": "object",
            "properties": {
                "deviceID": {
                    "type": "string"
                },
                "deviceName": {
                    "type": "string"
                },
                "needSetProcessParams": {
                    "description": "是否需要设置工艺参数",
                    "type": "boolean"
                }
            }
        },
        "response.DeviceListResponse": {
            "type": "object",
            "properties": {
@@ -1585,11 +1819,11 @@
                    "description": "当前选定的生产设备",
                    "type": "string"
                },
                "deviceIDList": {
                "deviceList": {
                    "description": "生产设备id列表",
                    "type": "array",
                    "items": {
                        "type": "string"
                        "$ref": "#/definitions/response.Device"
                    }
                },
                "systemDeviceID": {