From c0f8f8d3a74dbdab4f6ab4926fc664d818fb50f2 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期四, 25 四月 2024 16:59:22 +0800
Subject: [PATCH] 获取供应商产品

---
 docs/docs.go |  136 ++++++++++++++++++++++++++++++++-------------
 1 files changed, 96 insertions(+), 40 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 7e686f0..9ebef61 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1389,6 +1389,13 @@
                         "type": "string",
                         "name": "unit",
                         "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "description": "token",
+                        "name": "Authorization",
+                        "in": "header",
+                        "required": true
                     }
                 ],
                 "responses": {
@@ -1851,11 +1858,13 @@
                 "summary": "鏂扮増鎻愪氦",
                 "parameters": [
                     {
-                        "type": "integer",
-                        "description": "閲囪喘鍗旾D",
-                        "name": "id",
-                        "in": "path",
-                        "required": true
+                        "description": "鍙傛暟",
+                        "name": "data",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/purchaserequest.SubmitPurchase"
+                        }
                     }
                 ],
                 "responses": {
@@ -2434,11 +2443,13 @@
                 "summary": "鎻愪氦閲囪喘鍗�",
                 "parameters": [
                     {
-                        "type": "integer",
-                        "description": "閲囪喘鍗旾D",
-                        "name": "id",
-                        "in": "path",
-                        "required": true
+                        "description": "鍙傛暟",
+                        "name": "data",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/purchaserequest.SubmitPurchase"
+                        }
                     }
                 ],
                 "responses": {
@@ -4114,7 +4125,7 @@
                     "type": "string"
                 },
                 "sourceOrder": {
-                    "description": "鏉ユ簮鍗曟嵁",
+                    "description": "鏉ユ簮鍗曟嵁 ,閿�鍞槑缁嗙紪鐮�",
                     "type": "string"
                 },
                 "status": {
@@ -4555,6 +4566,17 @@
                 }
             }
         },
+        "purchaserequest.SubmitPurchase": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "status": {
+                    "$ref": "#/definitions/purchase.OrderStatus"
+                }
+            }
+        },
         "purchaserequest.UpdatePurchase": {
             "type": "object",
             "properties": {
@@ -4668,17 +4690,9 @@
                 }
             }
         },
-        "response.OperationInfo": {
+        "response.InWarehouseInfo": {
             "type": "object",
             "properties": {
-                "amount": {
-                    "description": "閲囪喘鏁�",
-                    "type": "number"
-                },
-                "modelNumber": {
-                    "description": "鍨嬪彿",
-                    "type": "string"
-                },
                 "name": {
                     "description": "浜у搧鍚嶇О",
                     "type": "string"
@@ -4703,32 +4717,29 @@
                     "description": "璐熻矗浜�",
                     "type": "string"
                 },
-                "purchasePrice": {
-                    "description": "鍗曚环",
-                    "type": "number"
-                },
-                "sendAmount": {
-                    "description": "鍙戣揣鏁�",
-                    "type": "integer"
-                },
-                "specifications": {
-                    "description": "瑙勬牸",
-                    "type": "string"
-                },
                 "status": {
                     "type": "integer"
-                },
-                "total": {
-                    "description": "鎬讳环",
-                    "type": "number"
-                },
-                "unit": {
-                    "description": "鍗曚綅",
-                    "type": "string"
                 },
                 "warehouseName": {
                     "description": "浠撳簱鍚�",
                     "type": "string"
+                }
+            }
+        },
+        "response.OperationInfo": {
+            "type": "object",
+            "properties": {
+                "inWarehouseInfos": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/response.InWarehouseInfo"
+                    }
+                },
+                "productInfos": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/response.ProductInfo"
+                    }
                 }
             }
         },
@@ -4747,6 +4758,51 @@
                 }
             }
         },
+        "response.ProductInfo": {
+            "type": "object",
+            "properties": {
+                "amount": {
+                    "description": "閲囪喘鏁�",
+                    "type": "number"
+                },
+                "modelNumber": {
+                    "description": "鍨嬪彿",
+                    "type": "string"
+                },
+                "name": {
+                    "description": "浜у搧鍚嶇О",
+                    "type": "string"
+                },
+                "number": {
+                    "description": "浜у搧缂栫爜",
+                    "type": "string"
+                },
+                "overAmount": {
+                    "description": "鍏ュ簱鏁�",
+                    "type": "integer"
+                },
+                "purchasePrice": {
+                    "description": "鍗曚环",
+                    "type": "number"
+                },
+                "sendAmount": {
+                    "description": "鏀惰揣鏁�",
+                    "type": "integer"
+                },
+                "specifications": {
+                    "description": "瑙勬牸",
+                    "type": "string"
+                },
+                "total": {
+                    "description": "鎬讳环",
+                    "type": "number"
+                },
+                "unit": {
+                    "description": "鍗曚綅",
+                    "type": "string"
+                }
+            }
+        },
         "response.PurchaseProducts": {
             "type": "object",
             "properties": {

--
Gitblit v1.8.0