From 5adf6ad89a4df69aa169beab89ca5afc738adfa4 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期三, 20 九月 2023 19:36:53 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/WMS

---
 docs/docs.go |  386 ++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 296 insertions(+), 90 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 03c8ea4..e0a89ae 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -294,6 +294,179 @@
                 }
             }
         },
+        "/api-wms/v1/location/addLocation": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浣嶇疆"
+                ],
+                "summary": "娣诲姞浣嶇疆淇℃伅",
+                "parameters": [
+                    {
+                        "description": "浣嶇疆淇℃伅",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/models.Location"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/location/deleteLocation/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浣嶇疆"
+                ],
+                "summary": "鍒犻櫎浣嶇疆",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/location/getLocationDetails/{id}": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浣嶇疆"
+                ],
+                "summary": "鑾峰彇浣嶇疆璇︽儏",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/util.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/models.Location"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/location/getLocationList": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浣嶇疆"
+                ],
+                "summary": "鑾峰彇浣嶇疆鍒楄〃",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.GetProductList"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/util.ResponseList"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/models.Location"
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/location/updateLocation": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浣嶇疆"
+                ],
+                "summary": "淇敼浣嶇疆",
+                "parameters": [
+                    {
+                        "description": "浜у搧淇℃伅",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/models.Location"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api-wms/v1/operation/operation": {
             "get": {
                 "consumes": [
@@ -916,6 +1089,76 @@
                 }
             }
         },
+        "/api-wms/v1/warehouse/getWarehouseDetails/{id}": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浠撳簱"
+                ],
+                "summary": "鑾峰彇浠撳簱璇︽儏",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "浠撳簱id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/util.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/models.Warehouse"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/warehouse/updateWarehouse": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浠撳簱"
+                ],
+                "summary": "缂栬緫浠撳簱",
+                "parameters": [
+                    {
+                        "description": "浠撳簱淇℃伅",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/models.Warehouse"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api-wms/v1/warehouse/warehouse": {
             "get": {
                 "produces": [
@@ -998,41 +1241,6 @@
             }
         },
         "/api-wms/v1/warehouse/warehouse/{id}": {
-            "put": {
-                "produces": [
-                    "application/json"
-                ],
-                "tags": [
-                    "浠撳簱"
-                ],
-                "summary": "缂栬緫浠撳簱",
-                "parameters": [
-                    {
-                        "description": "浠撳簱淇℃伅",
-                        "name": "object",
-                        "in": "body",
-                        "required": true,
-                        "schema": {
-                            "$ref": "#/definitions/request.UpdateWarehouse"
-                        }
-                    },
-                    {
-                        "type": "string",
-                        "description": "浠撳簱id",
-                        "name": "id",
-                        "in": "path",
-                        "required": true
-                    }
-                ],
-                "responses": {
-                    "200": {
-                        "description": "鎴愬姛",
-                        "schema": {
-                            "$ref": "#/definitions/util.Response"
-                        }
-                    }
-                }
-            },
             "delete": {
                 "produces": [
                     "application/json"
@@ -1235,6 +1443,24 @@
                 "TaskAndObject"
             ]
         },
+        "constvar.ProductType": {
+            "type": "integer",
+            "enum": [
+                1,
+                2,
+                3
+            ],
+            "x-enum-comments": {
+                "Consumables": "娑堣�楀搧",
+                "Server": "鏈嶅姟",
+                "StoredProduct": "鍙偍瀛樼殑浜у搧"
+            },
+            "x-enum-varnames": [
+                "Consumables",
+                "Server",
+                "StoredProduct"
+            ]
+        },
         "constvar.ReservationMethod": {
             "type": "integer",
             "enum": [
@@ -1349,6 +1575,14 @@
                 "createTime": {
                     "type": "string"
                 },
+                "forceRemovalStrategy": {
+                    "description": "涓嬫灦绛栫暐",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.ForceRemovalStrategy"
+                        }
+                    ]
+                },
                 "id": {
                     "type": "integer"
                 },
@@ -1366,7 +1600,7 @@
                 },
                 "parentId": {
                     "description": "涓婄骇id",
-                    "type": "integer"
+                    "type": "string"
                 },
                 "replenishLocation": {
                     "description": "鏄惁琛ュ厖浣嶇疆",
@@ -1411,6 +1645,10 @@
                 "categoryId": {
                     "description": "浜у搧绫诲埆id",
                     "type": "integer"
+                },
+                "categoryName": {
+                    "description": "浜у搧绫诲埆鍚嶇О",
+                    "type": "string"
                 },
                 "companyId": {
                     "description": "鍏徃id",
@@ -1464,7 +1702,7 @@
                     "type": "string"
                 },
                 "invoicingStrategy": {
-                    "description": "wms娣诲姞瀛楁",
+                    "description": "寮�绁ㄧ瓥鐣�",
                     "allOf": [
                         {
                             "$ref": "#/definitions/constvar.InvoicingStrategy"
@@ -1531,6 +1769,14 @@
                     "description": "浜у搧鏍囩鍚嶇О",
                     "type": "string"
                 },
+                "productType": {
+                    "description": "wms娣诲姞瀛楁",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.ProductType"
+                        }
+                    ]
+                },
                 "purchasePrice": {
                     "description": "閲囪喘浠锋牸",
                     "type": "number"
@@ -1541,7 +1787,7 @@
                 },
                 "selectProduct": {
                     "description": "鍙�変骇鍝乮d",
-                    "type": "integer"
+                    "type": "string"
                 },
                 "sellExplain": {
                     "description": "閿�鍞鏄�",
@@ -1771,6 +2017,10 @@
                     "description": "鍏ュ悜杩愯緭",
                     "type": "integer"
                 },
+                "locationId": {
+                    "description": "浣嶇疆id",
+                    "type": "integer"
+                },
                 "name": {
                     "description": "浠撳簱鍚嶇О",
                     "type": "string"
@@ -1798,6 +2048,10 @@
                     }
                 },
                 "updateTime": {
+                    "type": "string"
+                },
+                "warehouseLocation": {
+                    "description": "搴撳瓨浣嶇疆",
                     "type": "string"
                 }
             }
@@ -2002,6 +2256,10 @@
                 },
                 "inboundTransportation": {
                     "description": "鍏ュ悜杩愯緭",
+                    "type": "integer"
+                },
+                "locationId": {
+                    "description": "浣嶇疆id",
                     "type": "integer"
                 },
                 "name": {
@@ -2239,58 +2497,6 @@
                 "warehouseId": {
                     "description": "浠撳簱id",
                     "type": "integer"
-                }
-            }
-        },
-        "request.UpdateWarehouse": {
-            "type": "object",
-            "required": [
-                "code"
-            ],
-            "properties": {
-                "active": {
-                    "description": "鏄惁鍚敤锛屼紶true灏辫",
-                    "type": "boolean"
-                },
-                "address": {
-                    "description": "鍦板潃",
-                    "type": "string"
-                },
-                "buyToResupply": {
-                    "description": "璐拱琛ョ粰锛屽凡璐拱浜у搧鑳藉鍙戦�佸埌姝や粨搴�",
-                    "type": "boolean"
-                },
-                "code": {
-                    "description": "浠撳簱缂栫爜",
-                    "type": "string",
-                    "maxLength": 5,
-                    "minLength": 1
-                },
-                "id": {
-                    "type": "integer"
-                },
-                "inboundTransportation": {
-                    "description": "鍏ュ悜杩愯緭",
-                    "type": "integer"
-                },
-                "name": {
-                    "description": "浠撳簱鍚嶇О",
-                    "type": "string"
-                },
-                "outboundTransportation": {
-                    "description": "鍑哄簱杩愯緭",
-                    "type": "integer"
-                },
-                "partnerId": {
-                    "description": "鍚堜綔浼欎即id",
-                    "type": "integer"
-                },
-                "resupplyWhIds": {
-                    "description": "琛ョ粰鏉ユ簮浠撳簱ID",
-                    "type": "array",
-                    "items": {
-                        "type": "string"
-                    }
                 }
             }
         },

--
Gitblit v1.8.0