From 8426708ecdf4f25656a04d7b182643b27c188157 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期六, 19 八月 2023 11:05:43 +0800
Subject: [PATCH] 增加测试数据

---
 docs/docs.go |  244 +++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 198 insertions(+), 46 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index be67e6e..c7aeffc 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -16,24 +16,22 @@
     "host": "{{.Host}}",
     "basePath": "{{.BasePath}}",
     "paths": {
-        "/v1/notice/task/start": {
-            "post": {
+        "/v1/task/finish/{id}": {
+            "put": {
                 "produces": [
                     "application/json"
                 ],
                 "tags": [
-                    "Base"
+                    "Task"
                 ],
-                "summary": "浠诲姟寮�鍚�氱煡",
+                "summary": "浠诲姟缁撴潫",
                 "parameters": [
                     {
-                        "description": "鏌ヨ鍙傛暟",
-                        "name": "object",
-                        "in": "body",
-                        "required": true,
-                        "schema": {
-                            "$ref": "#/definitions/request.TaskInfo"
-                        }
+                        "type": "integer",
+                        "description": "宸ュ簭id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
                     }
                 ],
                 "responses": {
@@ -46,27 +44,81 @@
                 }
             }
         },
-        "/v1/task/list": {
+        "/v1/task/get": {
             "get": {
                 "produces": [
                     "application/json"
                 ],
                 "tags": [
-                    "Base"
+                    "Task"
                 ],
-                "summary": "浠诲姟寮�鍚�氱煡",
+                "summary": "鑾峰彇浠诲姟",
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/response.TaskData"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/v1/task/sendProcessParams/{id}": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Task"
+                ],
+                "summary": "涓嬪彂宸ヨ壓鍙傛暟",
                 "parameters": [
                     {
                         "type": "integer",
-                        "description": "椤电爜",
-                        "name": "page",
-                        "in": "query"
-                    },
+                        "description": "宸ュ簭id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/v1/task/start/{id}": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Task"
+                ],
+                "summary": "浠诲姟寮�濮�",
+                "parameters": [
                     {
                         "type": "integer",
-                        "description": "姣忛〉澶у皬",
-                        "name": "pageSize",
-                        "in": "query"
+                        "description": "宸ュ簭id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
                     }
                 ],
                 "responses": {
@@ -83,7 +135,7 @@
                                         "data": {
                                             "type": "array",
                                             "items": {
-                                                "$ref": "#/definitions/model.ScheduleTask"
+                                                "$ref": "#/definitions/response.ProcessParams"
                                             }
                                         }
                                     }
@@ -108,33 +160,35 @@
                 }
             }
         },
-        "model.ScheduleTask": {
+        "model.Order": {
             "type": "object",
             "properties": {
                 "amount": {
-                    "description": "Parameter   string          ` + "`" + `json:\"parameter\"` + "`" + `   //浜у搧鍚嶇О\nCustomer    string          ` + "`" + `json:\"customer\"` + "`" + `\nDeliverDate string          ` + "`" + `json:\"deliverDate\"` + "`" + `\nOrderAttr   string          ` + "`" + `json:\"orderAttr\"` + "`" + `",
                     "type": "number"
                 },
-                "data": {
-                    "description": "鎺掔▼浠诲姟json涓�",
+                "customer": {
+                    "type": "string"
+                },
+                "deliverDate": {
                     "type": "string"
                 },
                 "endTime": {
                     "type": "integer"
                 },
-                "id": {
-                    "type": "integer"
+                "orderAttr": {
+                    "description": "璁㈠崟灞炴�ф嫾鎺ョ殑瀛楃涓诧紝鍗宠揣鐗╂弿杩�",
+                    "type": "string"
                 },
                 "orderId": {
-                    "description": "璁㈠崟id",
+                    "type": "string"
+                },
+                "parameter": {
                     "type": "string"
                 },
                 "productId": {
-                    "description": "璁㈠崟id",
                     "type": "string"
                 },
                 "productName": {
-                    "description": "浜у搧鍚嶇О",
                     "type": "string"
                 },
                 "startTime": {
@@ -142,31 +196,129 @@
                 },
                 "unit": {
                     "type": "string"
+                },
+                "workOrderId": {
+                    "type": "string"
                 }
             }
         },
-        "request.TaskInfo": {
+        "model.Procedures": {
             "type": "object",
             "properties": {
-                "device": {
-                    "description": "璁惧",
-                    "type": "string"
-                },
-                "orderId": {
-                    "description": "璁㈠崟鍙�",
-                    "type": "string"
-                },
-                "password": {
-                    "description": "浜у搧",
-                    "type": "string"
+                "id": {
+                    "type": "integer"
                 },
                 "procedure": {
-                    "description": "宸ュ簭",
+                    "description": "request.ProductProcedure  瀵硅薄",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/request.ProductProcedure"
+                        }
+                    ]
+                }
+            }
+        },
+        "request.ProcedureMaterial": {
+            "type": "object",
+            "properties": {
+                "amount": {
+                    "type": "number"
+                },
+                "materialId": {
                     "type": "string"
                 },
-                "workOrder": {
-                    "description": "宸ュ崟",
+                "materialName": {
                     "type": "string"
+                },
+                "unit": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.ProcedureWorker": {
+            "type": "object",
+            "properties": {
+                "endTime": {
+                    "type": "integer"
+                },
+                "phoneNum": {
+                    "type": "string"
+                },
+                "startTime": {
+                    "type": "integer"
+                },
+                "workerId": {
+                    "type": "string"
+                },
+                "workerName": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.ProductProcedure": {
+            "type": "object",
+            "properties": {
+                "deviceId": {
+                    "type": "string"
+                },
+                "deviceName": {
+                    "type": "string"
+                },
+                "endTime": {
+                    "type": "integer"
+                },
+                "inputMaterials": {
+                    "description": "杈撳叆鐗╂枡鍒楄〃",
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/request.ProcedureMaterial"
+                    }
+                },
+                "outputMaterials": {
+                    "description": "杈撳嚭鐗╂枡鍒楄〃",
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/request.ProcedureMaterial"
+                    }
+                },
+                "procedureId": {
+                    "type": "string"
+                },
+                "procedureName": {
+                    "type": "string"
+                },
+                "startTime": {
+                    "type": "integer"
+                },
+                "workHours": {
+                    "type": "number"
+                },
+                "workers": {
+                    "description": "浜哄憳鍒楄〃",
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/request.ProcedureWorker"
+                    }
+                }
+            }
+        },
+        "response.ProcessParams": {
+            "type": "object",
+            "properties": {
+                "key": {
+                    "type": "string"
+                },
+                "value": {}
+            }
+        },
+        "response.TaskData": {
+            "type": "object",
+            "properties": {
+                "order": {
+                    "$ref": "#/definitions/model.Order"
+                },
+                "procedure": {
+                    "$ref": "#/definitions/model.Procedures"
                 }
             }
         }

--
Gitblit v1.8.0