From e5ee9138c720e48f7447be486f247e765b3f1e46 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 18 八月 2023 11:20:02 +0800
Subject: [PATCH] 增加参数下发接口

---
 docs/docs.go |  318 ++++++++++++++++++++++++++++++++--------------------
 1 files changed, 196 insertions(+), 122 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 40f438e..825f266 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -16,26 +16,43 @@
     "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": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/v1/task/get": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Task"
+                ],
+                "summary": "鑾峰彇浠诲姟",
                 "responses": {
                     "200": {
                         "description": "鎴愬姛",
@@ -48,7 +65,7 @@
                                     "type": "object",
                                     "properties": {
                                         "data": {
-                                            "$ref": "#/definitions/response.LoginResponse"
+                                            "$ref": "#/definitions/response.TaskData"
                                         }
                                     }
                                 }
@@ -57,27 +74,65 @@
                     }
                 }
             }
+        },
+        "/v1/task/sendProcessParams/{id}": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Task"
+                ],
+                "summary": "涓嬪彂宸ヨ壓鍙傛暟",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "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": "宸ュ簭id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
         }
     },
     "definitions": {
-        "constvar.UserType": {
-            "type": "integer",
-            "enum": [
-                1,
-                2,
-                3
-            ],
-            "x-enum-comments": {
-                "UserTypePrimary": "涓昏处鎴�",
-                "UserTypeSub": "瀛愯处鎴�",
-                "UserTypeSuper": "瓒呯骇绠$悊鍛�"
-            },
-            "x-enum-varnames": [
-                "UserTypeSuper",
-                "UserTypePrimary",
-                "UserTypeSub"
-            ]
-        },
         "contextx.Response": {
             "type": "object",
             "properties": {
@@ -90,125 +145,144 @@
                 }
             }
         },
-        "model.User": {
+        "model.Order": {
             "type": "object",
             "properties": {
-                "companyCity": {
+                "amount": {
+                    "type": "number"
+                },
+                "customer": {
                     "type": "string"
                 },
-                "companyContact": {
+                "deliverDate": {
                     "type": "string"
                 },
-                "companyEmail": {
-                    "type": "string"
-                },
-                "companyLogo": {
-                    "type": "string"
-                },
-                "companyName": {
-                    "type": "string"
-                },
-                "companyProvince": {
-                    "type": "string"
-                },
-                "companyTrade": {
-                    "type": "string"
-                },
-                "createAt": {
-                    "description": "鍒涘缓鏃堕棿",
-                    "type": "string"
-                },
-                "enable": {
-                    "type": "boolean"
-                },
-                "headerImage": {
-                    "type": "string"
-                },
-                "id": {
-                    "type": "string"
-                },
-                "ip": {
-                    "type": "string"
-                },
-                "menuIds": {
-                    "description": "鑿滃崟ID鍒楄〃",
-                    "type": "array",
-                    "items": {
-                        "type": "integer"
-                    }
-                },
-                "nickName": {
-                    "type": "string"
-                },
-                "parentId": {
-                    "type": "string"
-                },
-                "parentName": {
-                    "type": "string"
-                },
-                "phone": {
-                    "type": "string"
-                },
-                "port": {
-                    "type": "string"
-                },
-                "pos": {
-                    "type": "string"
-                },
-                "status": {
+                "endTime": {
                     "type": "integer"
                 },
-                "systemName": {
-                    "type": "string"
-                },
-                "updateAt": {
-                    "description": "鏇存柊鏃堕棿",
-                    "type": "string"
-                },
-                "userType": {
-                    "$ref": "#/definitions/constvar.UserType"
-                },
-                "username": {
-                    "type": "string"
-                }
-            }
-        },
-        "request.TaskInfo": {
-            "type": "object",
-            "properties": {
-                "device": {
-                    "description": "璁惧",
+                "orderAttr": {
+                    "description": "璁㈠崟灞炴�ф嫾鎺ョ殑瀛楃涓诧紝鍗宠揣鐗╂弿杩�",
                     "type": "string"
                 },
                 "orderId": {
-                    "description": "璁㈠崟鍙�",
                     "type": "string"
                 },
-                "password": {
-                    "description": "浜у搧",
+                "parameter": {
                     "type": "string"
                 },
-                "procedure": {
-                    "description": "宸ュ簭",
+                "productId": {
                     "type": "string"
                 },
-                "workOrder": {
-                    "description": "宸ュ崟",
+                "productName": {
+                    "type": "string"
+                },
+                "startTime": {
+                    "type": "integer"
+                },
+                "unit": {
                     "type": "string"
                 }
             }
         },
-        "response.LoginResponse": {
+        "model.Procedures": {
             "type": "object",
             "properties": {
-                "expiresAt": {
+                "id": {
                     "type": "integer"
                 },
-                "token": {
+                "procedure": {
+                    "description": "request.ProductProcedure  瀵硅薄",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/request.ProductProcedure"
+                        }
+                    ]
+                }
+            }
+        },
+        "request.ProcedureMaterial": {
+            "type": "object",
+            "properties": {
+                "amount": {
+                    "type": "number"
+                },
+                "materialId": {
                     "type": "string"
                 },
-                "user": {
-                    "$ref": "#/definitions/model.User"
+                "materialName": {
+                    "type": "string"
+                },
+                "unit": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.ProcedureWorker": {
+            "type": "object",
+            "properties": {
+                "phoneNum": {
+                    "type": "string"
+                },
+                "workerId": {
+                    "type": "string"
+                },
+                "workerName": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.ProductProcedure": {
+            "type": "object",
+            "properties": {
+                "deviceId": {
+                    "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.TaskData": {
+            "type": "object",
+            "properties": {
+                "order": {
+                    "$ref": "#/definitions/model.Order"
+                },
+                "procedure": {
+                    "$ref": "#/definitions/model.Procedures"
                 }
             }
         }

--
Gitblit v1.8.0