From 14fc2f577e2c0b7b146c1a430e9438f317ad5b0c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期六, 23 九月 2023 14:14:27 +0800
Subject: [PATCH] 任务接收增加channel字段,postion字段改为channel

---
 docs/docs.go |   83 ++++++++++++++++++++++++++++++++++-------
 1 files changed, 68 insertions(+), 15 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index b8014f8..b41553d 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -470,6 +470,51 @@
                 }
             }
         },
+        "/v1/task/get/unStarted": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Task"
+                ],
+                "summary": "鑾峰彇鏈紑濮嬬殑浠诲姟",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "椤电爜",
+                        "name": "page",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "姣忛〉澶у皬",
+                        "name": "pageSize",
+                        "in": "query"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/response.TaskData"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
         "/v1/task/sendProcessParams": {
             "post": {
                 "produces": [
@@ -589,6 +634,10 @@
                         "type": "string"
                     }
                 },
+                "channel": {
+                    "description": "閫氶亾搴忓彿",
+                    "type": "integer"
+                },
                 "deviceId": {
                     "type": "string"
                 },
@@ -692,7 +741,7 @@
             "type": "object",
             "properties": {
                 "address": {
-                    "description": "PortName   string ` + "`" + `gorm:\"type:varchar(191);comment:绔彛鍚嶇О\" json:\"portName\"` + "`" + `\nFrequency  int    ` + "`" + `gorm:\"type:int(11);comment:鏁版嵁鏇存柊棰戠巼 0-瀹炴椂鏇存柊 1-1娆�/绉抃" json:\"frequency\"` + "`" + `",
+                    "description": "PortName   string ` + "`" + `gorm:\"type:varchar(191);comment:绔彛鍚嶇О\" json:\"portName\"` + "`" + `\nFrequency  int    ` + "`" + `gorm:\"comment:鏁版嵁鏇存柊棰戠巼 0-瀹炴椂鏇存柊 1-1娆�/绉抃" json:\"frequency\"` + "`" + `",
                     "type": "string"
                 },
                 "baudRate": {
@@ -730,6 +779,10 @@
         "model.DevicePlcAddress": {
             "type": "object",
             "properties": {
+                "channel": {
+                    "description": "鏁版嵁璧峰鍦板潃",
+                    "type": "integer"
+                },
                 "fieldName": {
                     "description": "瀵瑰簲绯荤粺瀛楁",
                     "allOf": [
@@ -740,10 +793,6 @@
                 },
                 "length": {
                     "description": "鏁版嵁闀垮害",
-                    "type": "integer"
-                },
-                "position": {
-                    "description": "鏁版嵁璧峰鍦板潃",
                     "type": "integer"
                 },
                 "startAddress": {
@@ -902,6 +951,10 @@
         "model.Procedures": {
             "type": "object",
             "properties": {
+                "channel": {
+                    "description": "閫氶亾",
+                    "type": "integer"
+                },
                 "deviceId": {
                     "type": "string"
                 },
@@ -909,10 +962,6 @@
                     "type": "integer"
                 },
                 "id": {
-                    "type": "integer"
-                },
-                "position": {
-                    "description": "姣忎釜璁惧鍙兘鏈夊涓満浣嶅悓鏃剁敓浜э紝鐢╬osition琛ㄧず浣嶇疆",
                     "type": "integer"
                 },
                 "procedure": {
@@ -951,7 +1000,7 @@
                 "procedureId"
             ],
             "properties": {
-                "position": {
+                "channel": {
                     "type": "integer"
                 },
                 "procedureId": {
@@ -963,7 +1012,7 @@
             "type": "object",
             "properties": {
                 "address": {
-                    "description": "PortName   string ` + "`" + `gorm:\"type:varchar(191);comment:绔彛鍚嶇О\" json:\"portName\"` + "`" + `\nFrequency  int    ` + "`" + `gorm:\"type:int(11);comment:鏁版嵁鏇存柊棰戠巼 0-瀹炴椂鏇存柊 1-1娆�/绉抃" json:\"frequency\"` + "`" + `",
+                    "description": "PortName   string ` + "`" + `gorm:\"type:varchar(191);comment:绔彛鍚嶇О\" json:\"portName\"` + "`" + `\nFrequency  int    ` + "`" + `gorm:\"comment:鏁版嵁鏇存柊棰戠巼 0-瀹炴椂鏇存柊 1-1娆�/绉抃" json:\"frequency\"` + "`" + `",
                     "type": "string"
                 },
                 "baudRate": {
@@ -1087,15 +1136,19 @@
                         "type": "string"
                     }
                 },
+                "canStarted": {
+                    "description": "鏄惁鍙互寮�濮嬬敓浜�",
+                    "type": "boolean"
+                },
+                "channel": {
+                    "description": "褰撳墠浠诲姟鍦ㄨ澶囩鍑犱釜閫氶亾",
+                    "type": "integer"
+                },
                 "currentProcedureIndex": {
                     "type": "integer"
                 },
                 "order": {
                     "$ref": "#/definitions/model.Order"
-                },
-                "position": {
-                    "description": "褰撳墠浠诲姟鍦ㄨ澶囩鍑犱釜浣嶇疆",
-                    "type": "integer"
                 },
                 "procedure": {
                     "$ref": "#/definitions/model.Procedures"

--
Gitblit v1.8.0