From 9852e9aa54408c29e05dbcd603a10ffc09acd40b Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 09 十一月 2023 14:02:16 +0800
Subject: [PATCH] 增加设置是否跳过设置工艺参数接口

---
 docs/swagger.yaml |   45 ++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 38 insertions(+), 7 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index e027ea9..393866b 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -113,11 +113,13 @@
   constvar.PlcStartAddressValueType:
     enum:
     - string
-    - int
+    - int16
+    - int32
     type: string
     x-enum-varnames:
     - PlcStartAddressValueTypeString
-    - PlcStartAddressValueTypeInt
+    - PlcStartAddressValueTypeInt16
+    - PlcStartAddressValueTypeInt32
   constvar.ProblemCode:
     enum:
     - service
@@ -454,6 +456,12 @@
       updatedAt:
         type: string
     type: object
+  request.DeviceConfig:
+    properties:
+      needSetProcessParams:
+        description: 鏄惁闇�瑕佽缃伐鑹哄弬鏁�
+        type: boolean
+    type: object
   request.GetProductProgress:
     properties:
       channel:
@@ -541,6 +549,13 @@
       updatedAt:
         type: string
     type: object
+  response.Device:
+    properties:
+      deviceID:
+        type: string
+      deviceName:
+        type: string
+    type: object
   response.DeviceListResponse:
     properties:
       clusterNodeQuantity:
@@ -552,10 +567,10 @@
       currentDeviceID:
         description: 褰撳墠閫夊畾鐨勭敓浜ц澶�
         type: string
-      deviceIDList:
+      deviceList:
         description: 鐢熶骇璁惧id鍒楄〃
         items:
-          type: string
+          $ref: '#/definitions/response.Device'
         type: array
       systemDeviceID:
         description: 宸ユ帶鏈鸿澶嘔D
@@ -753,6 +768,25 @@
       summary: 鏇存柊plc閰嶇疆
       tags:
       - Config
+  /v1/device/config:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.DeviceConfig'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      summary: 璁剧疆璁惧涓�浜涢厤缃�
+      tags:
+      - 璁惧
   /v1/device/list:
     get:
       produces:
@@ -990,9 +1024,6 @@
   /v1/task/get:
     get:
       parameters:
-      - in: query
-        name: deviceID
-        type: string
       - description: 椤电爜
         in: query
         name: page

--
Gitblit v1.8.0