From e67802cd15e273da46bfb734e339a947b7d1eceb Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 15 九月 2023 16:01:04 +0800
Subject: [PATCH] debug

---
 docs/swagger.json |   71 +++++++++++++++++++++++++++++++----
 1 files changed, 62 insertions(+), 9 deletions(-)

diff --git a/docs/swagger.json b/docs/swagger.json
index 2fb263f..47b9642 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -141,7 +141,7 @@
             }
         },
         "/v1/plc/productProgress": {
-            "get": {
+            "post": {
                 "produces": [
                     "application/json"
                 ],
@@ -149,6 +149,17 @@
                     "鐢熶骇鏁伴噺"
                 ],
                 "summary": "鑾峰彇鐢熶骇杩涘害",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.SendProcessParams"
+                        }
+                    }
+                ],
                 "responses": {
                     "200": {
                         "description": "鎴愬姛",
@@ -416,7 +427,7 @@
                 }
             }
         },
-        "/v1/task/sendProcessParams/{id}": {
+        "/v1/task/sendProcessParams": {
             "post": {
                 "produces": [
                     "application/json"
@@ -427,11 +438,13 @@
                 "summary": "涓嬪彂宸ヨ壓鍙傛暟锛堝紑濮嬩换鍔★級",
                 "parameters": [
                     {
-                        "type": "integer",
-                        "description": "宸ュ簭id",
-                        "name": "id",
-                        "in": "path",
-                        "required": true
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.SendProcessParams"
+                        }
                     }
                 ],
                 "responses": {
@@ -526,6 +539,13 @@
         "common.ProductProcedure": {
             "type": "object",
             "properties": {
+                "allProcedureNames": {
+                    "description": "鎵�灞炲伐鍗曞伐搴忓垪琛�",
+                    "type": "array",
+                    "items": {
+                        "type": "string"
+                    }
+                },
                 "deviceId": {
                     "type": "string"
                 },
@@ -580,11 +600,15 @@
             "type": "string",
             "enum": [
                 "modbusTCP",
-                "serial"
+                "serial",
+                "缃戠粶",
+                "涓插彛"
             ],
             "x-enum-varnames": [
                 "PlcMethodModbusTCP",
-                "PlcMethodSerial"
+                "PlcMethodSerial",
+                "PlcMethodModbusTCPChinese",
+                "PlcMethodSerialChinese"
             ]
         },
         "constvar.PlcStartAddressType": {
@@ -673,6 +697,10 @@
                 },
                 "length": {
                     "description": "鏁版嵁闀垮害",
+                    "type": "integer"
+                },
+                "position": {
+                    "description": "鏁版嵁璧峰鍦板潃",
                     "type": "integer"
                 },
                 "startAddress": {
@@ -840,6 +868,10 @@
                 "id": {
                     "type": "integer"
                 },
+                "position": {
+                    "description": "姣忎釜璁惧鍙兘鏈夊涓満浣嶅悓鏃剁敓浜э紝鐢╬osition琛ㄧず浣嶇疆",
+                    "type": "integer"
+                },
                 "procedure": {
                     "description": "common.ProductProcedure  瀵硅薄",
                     "allOf": [
@@ -867,6 +899,20 @@
                 },
                 "name": {
                     "type": "string"
+                }
+            }
+        },
+        "request.SendProcessParams": {
+            "type": "object",
+            "required": [
+                "procedureId"
+            ],
+            "properties": {
+                "position": {
+                    "type": "integer"
+                },
+                "procedureId": {
+                    "type": "integer"
                 }
             }
         },
@@ -964,6 +1010,9 @@
                 "finishNumber": {
                     "type": "integer"
                 },
+                "plcStatus": {
+                    "type": "integer"
+                },
                 "totalNumber": {
                     "type": "integer"
                 }
@@ -1001,6 +1050,10 @@
                 "order": {
                     "$ref": "#/definitions/model.Order"
                 },
+                "position": {
+                    "description": "褰撳墠浠诲姟鍦ㄨ澶囩鍑犱釜浣嶇疆",
+                    "type": "integer"
+                },
                 "procedure": {
                     "$ref": "#/definitions/model.Procedures"
                 }

--
Gitblit v1.8.0