From e5c9327d1b659cd6bf9c3adc3ae81146630511a0 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 29 八月 2023 14:51:21 +0800
Subject: [PATCH] Merge branch 'purchase'

---
 docs/docs.go |  250 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 248 insertions(+), 2 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 064a083..92af44b 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -4586,7 +4586,7 @@
                         "in": "body",
                         "required": true,
                         "schema": {
-                            "$ref": "#/definitions/purchaserequest.AddPurchase"
+                            "$ref": "#/definitions/purchaserequest.UpdatePurchase"
                         }
                     }
                 ],
@@ -4807,6 +4807,104 @@
                                     "properties": {
                                         "data": {
                                             "$ref": "#/definitions/response.PageResult"
+                                        },
+                                        "msg": {
+                                            "type": "string"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/purchase/purchaseType": {
+            "post": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "consumes": [
+                    "application/json"
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Purchase"
+                ],
+                "summary": "鍒涘缓閲囪喘绫诲瀷",
+                "parameters": [
+                    {
+                        "description": "閲囪喘绫诲瀷list",
+                        "name": "data",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "type": "array",
+                            "items": {
+                                "$ref": "#/definitions/purchaserequest.PurchaseType"
+                            }
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鍒涘缓閲囪喘绫诲瀷",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/response.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "msg": {
+                                            "type": "string"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/purchase/purchaseTypeList": {
+            "get": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "consumes": [
+                    "application/json"
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Purchase"
+                ],
+                "summary": "鑾峰彇閲囪喘绫诲瀷鍒楄〃",
+                "responses": {
+                    "200": {
+                        "description": "鑾峰彇閲囪喘绫诲瀷鍒楄〃",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/response.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/purchase.PurchaseType"
+                                            }
                                         },
                                         "msg": {
                                             "type": "string"
@@ -8295,6 +8393,27 @@
                 }
             }
         },
+        "purchase.OrderStatus": {
+            "type": "integer",
+            "enum": [
+                1,
+                2,
+                3,
+                4
+            ],
+            "x-enum-comments": {
+                "OrderStatusCompleted": "宸插畬鎴�",
+                "OrderStatusConfirmed": "宸蹭笅鍗�",
+                "OrderStatusReceived": "宸插埌璐�",
+                "OrderStatusStored": "宸插叆搴�"
+            },
+            "x-enum-varnames": [
+                "OrderStatusConfirmed",
+                "OrderStatusReceived",
+                "OrderStatusStored",
+                "OrderStatusCompleted"
+            ]
+        },
         "purchase.Purchase": {
             "type": "object",
             "properties": {
@@ -8318,9 +8437,16 @@
                     "description": "閲囪喘鍚嶇О",
                     "type": "string"
                 },
+                "number": {
+                    "description": "閲囪喘缂栧彿",
+                    "type": "string"
+                },
                 "phone": {
                     "description": "鑱旂郴浜虹數璇�",
                     "type": "string"
+                },
+                "purchaseType": {
+                    "$ref": "#/definitions/purchase.PurchaseType"
                 },
                 "purchaseTypeId": {
                     "description": "閲囪喘绫诲瀷id",
@@ -8333,6 +8459,17 @@
                 "signingDate": {
                     "description": "绛剧害鏃ユ湡",
                     "type": "string"
+                },
+                "status": {
+                    "description": "鐘舵��",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/purchase.OrderStatus"
+                        }
+                    ]
+                },
+                "supplier": {
+                    "$ref": "#/definitions/test.Supplier"
                 },
                 "supplierId": {
                     "description": "渚涘簲鍟唅d",
@@ -8377,6 +8514,27 @@
                 }
             }
         },
+        "purchase.PurchaseType": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "description": "涓婚敭ID",
+                    "type": "integer"
+                },
+                "name": {
+                    "description": "閲囪喘绫诲瀷",
+                    "type": "string"
+                },
+                "pin": {
+                    "description": "鏄惁缃《",
+                    "type": "boolean"
+                },
+                "sort": {
+                    "description": "鎺掑簭",
+                    "type": "integer"
+                }
+            }
+        },
         "purchaserequest.AddPurchase": {
             "type": "object",
             "properties": {
@@ -8387,7 +8545,95 @@
                     }
                 },
                 "purchase": {
-                    "$ref": "#/definitions/purchase.Purchase"
+                    "$ref": "#/definitions/purchaserequest.Purchase"
+                }
+            }
+        },
+        "purchaserequest.Purchase": {
+            "type": "object",
+            "properties": {
+                "contact": {
+                    "description": "鑱旂郴浜�",
+                    "type": "string"
+                },
+                "deliveryDate": {
+                    "description": "浜や粯鏃ユ湡",
+                    "type": "string"
+                },
+                "id": {
+                    "description": "涓婚敭ID",
+                    "type": "integer"
+                },
+                "name": {
+                    "description": "閲囪喘鍚嶇О",
+                    "type": "string"
+                },
+                "number": {
+                    "description": "閲囪喘缂栧彿",
+                    "type": "string"
+                },
+                "phone": {
+                    "description": "鑱旂郴浜虹數璇�",
+                    "type": "string"
+                },
+                "purchaseTypeId": {
+                    "description": "閲囪喘绫诲瀷id",
+                    "type": "integer"
+                },
+                "remark": {
+                    "description": "澶囨敞",
+                    "type": "string"
+                },
+                "signingDate": {
+                    "description": "绛剧害鏃ユ湡",
+                    "type": "string"
+                },
+                "status": {
+                    "description": "鐘舵��",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/purchase.OrderStatus"
+                        }
+                    ]
+                },
+                "supplierId": {
+                    "description": "渚涘簲鍟唅d",
+                    "type": "integer"
+                }
+            }
+        },
+        "purchaserequest.PurchaseType": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "description": "涓婚敭ID",
+                    "type": "integer"
+                },
+                "name": {
+                    "description": "閲囪喘绫诲瀷",
+                    "type": "string"
+                },
+                "pin": {
+                    "description": "鏄惁缃《",
+                    "type": "boolean"
+                },
+                "sort": {
+                    "description": "鎺掑簭",
+                    "type": "integer"
+                }
+            }
+        },
+        "purchaserequest.UpdatePurchase": {
+            "type": "object",
+            "properties": {
+                "productList": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/purchase.PurchaseProducts"
+                    }
+                },
+                "purchase": {
+                    "$ref": "#/definitions/purchaserequest.Purchase"
                 }
             }
         },

--
Gitblit v1.8.0