From cb2f80a627413d6dda5b9071a2711cb03964ed15 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 25 九月 2023 10:06:55 +0800
Subject: [PATCH] 任务接口返回通道数量

---
 docs/swagger.yaml |   30 +++++++++++++++++++++++++++++-
 1 files changed, 29 insertions(+), 1 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 3ad2a98..87a2541 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -67,6 +67,11 @@
           $ref: '#/definitions/common.ProcedureWorker'
         type: array
     type: object
+  conf.Prompt:
+    properties:
+      safeProduce:
+        type: string
+    type: object
   constvar.PlcMethod:
     enum:
     - modbusTCP
@@ -388,6 +393,29 @@
       procedure:
         $ref: '#/definitions/model.Procedures'
     type: object
+  response.TaskResponse:
+    properties:
+      channelAmount:
+        description: 閫氶亾鏁伴噺
+        type: integer
+      prompt:
+        allOf:
+        - $ref: '#/definitions/conf.Prompt'
+        description: 鎻愮ず璇�
+      taskCount:
+        description: 浠诲姟鏁伴噺
+        type: integer
+      tasks:
+        description: 浠诲姟鍒楄〃
+        items:
+          $ref: '#/definitions/response.TaskData'
+        type: array
+      workers:
+        description: 浜哄憳鍒楄〃
+        items:
+          $ref: '#/definitions/common.ProcedureWorker'
+        type: array
+    type: object
 info:
   contact: {}
 paths:
@@ -654,7 +682,7 @@
             - $ref: '#/definitions/contextx.Response'
             - properties:
                 data:
-                  $ref: '#/definitions/response.TaskData'
+                  $ref: '#/definitions/response.TaskResponse'
               type: object
       summary: 鑾峰彇浠诲姟
       tags:

--
Gitblit v1.8.0