From 726662cd89d0fe6b24461c850495db8c37a3e8f1 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期三, 20 九月 2023 14:16:04 +0800
Subject: [PATCH] 作业类型路径修改

---
 docs/docs.go |  565 +++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 418 insertions(+), 147 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index dd6d9d1..03c8ea4 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -295,6 +295,45 @@
             }
         },
         "/api-wms/v1/operation/operation": {
+            "get": {
+                "consumes": [
+                    "application/json"
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鍏ュ簱/鍑哄簱"
+                ],
+                "summary": "鍏ュ簱/鍑哄簱鍒楄〃",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "name": "operationTypeId",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "椤电爜",
+                        "name": "page",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "姣忛〉澶у皬",
+                        "name": "pageSize",
+                        "in": "query"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            },
             "post": {
                 "produces": [
                     "application/json"
@@ -312,6 +351,213 @@
                         "schema": {
                             "$ref": "#/definitions/request.AddOperation"
                         }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/operation/operation/{id}": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鍏ュ簱/鍑哄簱"
+                ],
+                "summary": "淇敼鍏ュ簱/鍑哄簱淇℃伅",
+                "parameters": [
+                    {
+                        "description": "鍏ュ簱淇℃伅",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateOperation"
+                        }
+                    },
+                    {
+                        "type": "integer",
+                        "description": "鍏ュ簱淇℃伅id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            },
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鍏ュ簱/鍑哄簱"
+                ],
+                "summary": "鍒犻櫎鍏ュ簱/鍑哄簱淇℃伅",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/operationType/operationType": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浣滀笟绫诲瀷"
+                ],
+                "summary": "鏌ヨ浣滀笟绫诲瀷鍒楄〃",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "name": "keyword",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "椤电爜",
+                        "name": "page",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "姣忛〉澶у皬",
+                        "name": "pageSize",
+                        "in": "query"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/util.ResponseList"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/models.OperationType"
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            },
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浣滀笟绫诲瀷"
+                ],
+                "summary": "娣诲姞浣滀笟绫诲瀷",
+                "parameters": [
+                    {
+                        "description": "浣滀笟绫诲瀷淇℃伅",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddOperationType"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/operationType/operationType/{id}": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浣滀笟绫诲瀷"
+                ],
+                "summary": "缂栬緫浣滀笟绫诲瀷",
+                "parameters": [
+                    {
+                        "description": "浣滀笟绫诲瀷淇℃伅",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateOperationType"
+                        }
+                    },
+                    {
+                        "type": "string",
+                        "description": "浣滀笟绫诲瀷id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            },
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浣滀笟绫诲瀷"
+                ],
+                "summary": "鍒犻櫎浣滀笟绫诲瀷",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "浣滀笟绫诲瀷id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
                     }
                 ],
                 "responses": {
@@ -658,150 +904,6 @@
                         "schema": {
                             "$ref": "#/definitions/models.ProductCategory"
                         }
-                    }
-                ],
-                "responses": {
-                    "200": {
-                        "description": "鎴愬姛",
-                        "schema": {
-                            "$ref": "#/definitions/util.Response"
-                        }
-                    }
-                }
-            }
-        },
-        "/api-wms/v1/warehouse/operationType": {
-            "get": {
-                "produces": [
-                    "application/json"
-                ],
-                "tags": [
-                    "浣滀笟绫诲瀷"
-                ],
-                "summary": "鏌ヨ浣滀笟绫诲瀷鍒楄〃",
-                "parameters": [
-                    {
-                        "type": "string",
-                        "name": "keyword",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "description": "椤电爜",
-                        "name": "page",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "description": "姣忛〉澶у皬",
-                        "name": "pageSize",
-                        "in": "query"
-                    }
-                ],
-                "responses": {
-                    "200": {
-                        "description": "鎴愬姛",
-                        "schema": {
-                            "allOf": [
-                                {
-                                    "$ref": "#/definitions/util.ResponseList"
-                                },
-                                {
-                                    "type": "object",
-                                    "properties": {
-                                        "data": {
-                                            "type": "array",
-                                            "items": {
-                                                "$ref": "#/definitions/models.OperationType"
-                                            }
-                                        }
-                                    }
-                                }
-                            ]
-                        }
-                    }
-                }
-            },
-            "post": {
-                "produces": [
-                    "application/json"
-                ],
-                "tags": [
-                    "浣滀笟绫诲瀷"
-                ],
-                "summary": "娣诲姞浣滀笟绫诲瀷",
-                "parameters": [
-                    {
-                        "description": "浣滀笟绫诲瀷淇℃伅",
-                        "name": "object",
-                        "in": "body",
-                        "required": true,
-                        "schema": {
-                            "$ref": "#/definitions/request.AddOperationType"
-                        }
-                    }
-                ],
-                "responses": {
-                    "200": {
-                        "description": "鎴愬姛",
-                        "schema": {
-                            "$ref": "#/definitions/util.Response"
-                        }
-                    }
-                }
-            }
-        },
-        "/api-wms/v1/warehouse/operationType/{id}": {
-            "put": {
-                "produces": [
-                    "application/json"
-                ],
-                "tags": [
-                    "浣滀笟绫诲瀷"
-                ],
-                "summary": "缂栬緫浣滀笟绫诲瀷",
-                "parameters": [
-                    {
-                        "description": "浣滀笟绫诲瀷淇℃伅",
-                        "name": "object",
-                        "in": "body",
-                        "required": true,
-                        "schema": {
-                            "$ref": "#/definitions/request.UpdateOperationType"
-                        }
-                    },
-                    {
-                        "type": "string",
-                        "description": "浣滀笟绫诲瀷id",
-                        "name": "id",
-                        "in": "path",
-                        "required": true
-                    }
-                ],
-                "responses": {
-                    "200": {
-                        "description": "鎴愬姛",
-                        "schema": {
-                            "$ref": "#/definitions/util.Response"
-                        }
-                    }
-                }
-            },
-            "delete": {
-                "produces": [
-                    "application/json"
-                ],
-                "tags": [
-                    "浣滀笟绫诲瀷"
-                ],
-                "summary": "鍒犻櫎浣滀笟绫诲瀷",
-                "parameters": [
-                    {
-                        "type": "string",
-                        "description": "浣滀笟绫诲瀷id",
-                        "name": "id",
-                        "in": "path",
-                        "required": true
                     }
                 ],
                 "responses": {
@@ -1287,9 +1389,11 @@
             "type": "object",
             "properties": {
                 "HSCode": {
+                    "description": "HS缂栫爜",
                     "type": "string"
                 },
                 "amount": {
+                    "description": "鏁伴噺",
                     "type": "number"
                 },
                 "barcode": {
@@ -1297,6 +1401,7 @@
                     "type": "string"
                 },
                 "buyExplain": {
+                    "description": "閲囪喘璇存槑",
                     "type": "string"
                 },
                 "canBePurchased": {
@@ -1308,19 +1413,27 @@
                     "type": "integer"
                 },
                 "companyId": {
+                    "description": "鍏徃id",
                     "type": "integer"
                 },
                 "companyName": {
+                    "description": "鍏徃鍚嶇О",
                     "type": "string"
                 },
                 "controlStrategy": {
-                    "$ref": "#/definitions/constvar.InvoicingStrategy"
+                    "description": "鎺у埗绛栫暐",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.InvoicingStrategy"
+                        }
+                    ]
                 },
                 "cost": {
                     "description": "鎴愭湰",
                     "type": "number"
                 },
                 "currencyName": {
+                    "description": "甯佺鍚嶇О",
                     "type": "string"
                 },
                 "customerTaxes": {
@@ -1328,12 +1441,14 @@
                     "type": "number"
                 },
                 "deliveryAdvanceTime": {
+                    "description": "浜よ揣鎻愬墠鏃堕棿(澶�)",
                     "type": "integer"
                 },
                 "id": {
                     "type": "string"
                 },
                 "inStorageExplain": {
+                    "description": "鍏ュ簱璇存槑",
                     "type": "string"
                 },
                 "internalNotes": {
@@ -1345,6 +1460,7 @@
                     "type": "string"
                 },
                 "internalTransferExplain": {
+                    "description": "鍐呴儴璋冩嫧璇存槑",
                     "type": "string"
                 },
                 "invoicingStrategy": {
@@ -1360,6 +1476,7 @@
                     "type": "boolean"
                 },
                 "maxInventory": {
+                    "description": "鏈�澶у簱瀛�",
                     "type": "number"
                 },
                 "minInventory": {
@@ -1379,18 +1496,27 @@
                     ]
                 },
                 "name": {
+                    "description": "鐗╂枡鍚嶇О",
                     "type": "string"
                 },
                 "orderCreation": {
-                    "$ref": "#/definitions/constvar.OrderCreation"
+                    "description": "璁㈠崟鍒涘缓",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.OrderCreation"
+                        }
+                    ]
                 },
                 "originCountryId": {
+                    "description": "鍘熶骇鍦癷d",
                     "type": "integer"
                 },
                 "originCountryName": {
+                    "description": "鍘熶骇鍦板悕绉�",
                     "type": "string"
                 },
                 "outStorageExplain": {
+                    "description": "鍑哄簱璇存槑",
                     "type": "string"
                 },
                 "principal": {
@@ -1398,26 +1524,35 @@
                     "type": "string"
                 },
                 "productTagId": {
-                    "description": "浜у搧鏍囩",
+                    "description": "浜у搧鏍囩id",
                     "type": "integer"
                 },
                 "productTagName": {
+                    "description": "浜у搧鏍囩鍚嶇О",
                     "type": "string"
                 },
                 "purchasePrice": {
+                    "description": "閲囪喘浠锋牸",
                     "type": "number"
                 },
                 "salePrice": {
+                    "description": "閿�鍞崟浠�",
                     "type": "number"
                 },
                 "selectProduct": {
+                    "description": "鍙�変骇鍝乮d",
                     "type": "integer"
                 },
                 "sellExplain": {
+                    "description": "閿�鍞鏄�",
                     "type": "string"
                 },
                 "supplier": {
                     "description": "FSource           string                  ` + "`" + `gorm:\"type:varchar(191);comment:鐢熶骇杞﹂棿\" json:\"-\"` + "`" + `\nStatus            constvar.MaterialStatus ` + "`" + `gorm:\"type:int(11);comment:鐘舵�乗" json:\"status\"` + "`" + `",
+                    "type": "string"
+                },
+                "templateID": {
+                    "description": "Note              string                  ` + "`" + `gorm:\"type:varchar(1024);comment:澶囨敞\" json:\"note\"` + "`" + `",
                     "type": "string"
                 },
                 "unit": {
@@ -1587,6 +1722,7 @@
                     "type": "integer"
                 },
                 "routeId": {
+                    "description": "璺嚎id",
                     "type": "integer"
                 },
                 "routeName": {
@@ -1604,6 +1740,10 @@
                 "active": {
                     "description": "鏄惁鍚敤锛屼紶true灏辫",
                     "type": "boolean"
+                },
+                "address": {
+                    "description": "鍦板潃",
+                    "type": "string"
                 },
                 "buyToResupply": {
                     "description": "鏄惁璐拱琛ョ粰锛屽凡璐拱浜у搧鑳藉鍙戦�佸埌姝や粨搴�",
@@ -1627,9 +1767,17 @@
                 "id": {
                     "type": "integer"
                 },
+                "inboundTransportation": {
+                    "description": "鍏ュ悜杩愯緭",
+                    "type": "integer"
+                },
                 "name": {
                     "description": "浠撳簱鍚嶇О",
                     "type": "string"
+                },
+                "outboundTransportation": {
+                    "description": "鍑哄簱杩愯緭",
+                    "type": "integer"
                 },
                 "partnerId": {
                     "description": "鍚堜綔浼欎即id",
@@ -1687,6 +1835,24 @@
         "request.AddOperation": {
             "type": "object",
             "properties": {
+                "carrierID": {
+                    "type": "integer"
+                },
+                "carrierName": {
+                    "type": "string"
+                },
+                "companyID": {
+                    "type": "integer"
+                },
+                "companyName": {
+                    "type": "string"
+                },
+                "contacterID": {
+                    "type": "integer"
+                },
+                "contacterName": {
+                    "type": "string"
+                },
                 "details": {
                     "type": "array",
                     "items": {
@@ -1726,6 +1892,15 @@
                 "toLocationId": {
                     "description": "鐩爣浣嶇疆id",
                     "type": "integer"
+                },
+                "tracking": {
+                    "type": "string"
+                },
+                "transferWeight": {
+                    "type": "number"
+                },
+                "weight": {
+                    "type": "number"
                 }
             }
         },
@@ -1811,6 +1986,10 @@
                     "description": "鏄惁鍚敤锛屼紶true灏辫",
                     "type": "boolean"
                 },
+                "address": {
+                    "description": "鍦板潃",
+                    "type": "string"
+                },
                 "buyToResupply": {
                     "description": "璐拱琛ョ粰锛屽凡璐拱浜у搧鑳藉鍙戦�佸埌姝や粨搴�",
                     "type": "boolean"
@@ -1821,9 +2000,17 @@
                     "maxLength": 5,
                     "minLength": 1
                 },
+                "inboundTransportation": {
+                    "description": "鍏ュ悜杩愯緭",
+                    "type": "integer"
+                },
                 "name": {
                     "description": "浠撳簱鍚嶇О",
                     "type": "string"
+                },
+                "outboundTransportation": {
+                    "description": "鍑哄簱杩愯緭",
+                    "type": "integer"
                 },
                 "partnerId": {
                     "description": "鍚堜綔浼欎即id",
@@ -1911,6 +2098,78 @@
                 }
             }
         },
+        "request.UpdateOperation": {
+            "type": "object",
+            "properties": {
+                "carrierID": {
+                    "type": "integer"
+                },
+                "carrierName": {
+                    "type": "string"
+                },
+                "companyID": {
+                    "type": "integer"
+                },
+                "companyName": {
+                    "type": "string"
+                },
+                "contacterID": {
+                    "type": "integer"
+                },
+                "contacterName": {
+                    "type": "string"
+                },
+                "details": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/request.OperationDetails"
+                    }
+                },
+                "fromLocationId": {
+                    "description": "婧愪綅缃甶d",
+                    "type": "integer"
+                },
+                "id": {
+                    "type": "integer"
+                },
+                "number": {
+                    "description": "鍗曞彿",
+                    "type": "string"
+                },
+                "operationDate": {
+                    "type": "string"
+                },
+                "operationTypeId": {
+                    "description": "浣滀笟绫诲瀷id",
+                    "type": "integer"
+                },
+                "sourceNumber": {
+                    "description": "婧愬崟鍙�",
+                    "type": "string"
+                },
+                "status": {
+                    "description": "鐘舵��",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.OperationStatus"
+                        }
+                    ]
+                },
+                "toLocationId": {
+                    "description": "鐩爣浣嶇疆id",
+                    "type": "integer"
+                },
+                "tracking": {
+                    "type": "string"
+                },
+                "transferWeight": {
+                    "type": "number"
+                },
+                "weight": {
+                    "type": "number"
+                }
+            }
+        },
         "request.UpdateOperationType": {
             "type": "object",
             "properties": {
@@ -1993,6 +2252,10 @@
                     "description": "鏄惁鍚敤锛屼紶true灏辫",
                     "type": "boolean"
                 },
+                "address": {
+                    "description": "鍦板潃",
+                    "type": "string"
+                },
                 "buyToResupply": {
                     "description": "璐拱琛ョ粰锛屽凡璐拱浜у搧鑳藉鍙戦�佸埌姝や粨搴�",
                     "type": "boolean"
@@ -2006,10 +2269,18 @@
                 "id": {
                     "type": "integer"
                 },
+                "inboundTransportation": {
+                    "description": "鍏ュ悜杩愯緭",
+                    "type": "integer"
+                },
                 "name": {
                     "description": "浠撳簱鍚嶇О",
                     "type": "string"
                 },
+                "outboundTransportation": {
+                    "description": "鍑哄簱杩愯緭",
+                    "type": "integer"
+                },
                 "partnerId": {
                     "description": "鍚堜綔浼欎即id",
                     "type": "integer"

--
Gitblit v1.8.0