From 0acdfc60dbb5ee96045ccd695db1fec9d1e9d127 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期三, 30 八月 2023 17:27:39 +0800
Subject: [PATCH] fix

---
 docs/docs.go |  791 +++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 699 insertions(+), 92 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 1ab4138..74a8c5c 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1919,17 +1919,7 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
-                        "in": "query"
-                    },
-                    {
-                        "type": "array",
-                        "items": {
-                            "type": "integer"
-                        },
-                        "collectionFormat": "csv",
-                        "name": "fileContent",
                         "in": "query"
                     },
                     {
@@ -1946,6 +1936,11 @@
                     {
                         "type": "integer",
                         "name": "supplierID",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -1979,17 +1974,7 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
-                        "in": "query"
-                    },
-                    {
-                        "type": "array",
-                        "items": {
-                            "type": "integer"
-                        },
-                        "collectionFormat": "csv",
-                        "name": "fileContent",
                         "in": "query"
                     },
                     {
@@ -2006,6 +1991,11 @@
                     {
                         "type": "integer",
                         "name": "supplierID",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -2039,22 +2029,12 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
                     {
                         "type": "string",
                         "name": "endCreatedAt",
-                        "in": "query"
-                    },
-                    {
-                        "type": "array",
-                        "items": {
-                            "type": "integer"
-                        },
-                        "collectionFormat": "csv",
-                        "name": "fileContent",
                         "in": "query"
                     },
                     {
@@ -2095,6 +2075,11 @@
                         "type": "integer",
                         "name": "supplierID",
                         "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
+                        "in": "query"
                     }
                 ],
                 "responses": {
@@ -2127,17 +2112,7 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
-                        "in": "query"
-                    },
-                    {
-                        "type": "array",
-                        "items": {
-                            "type": "integer"
-                        },
-                        "collectionFormat": "csv",
-                        "name": "fileContent",
                         "in": "query"
                     },
                     {
@@ -2154,6 +2129,11 @@
                     {
                         "type": "integer",
                         "name": "supplierID",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -2225,7 +2205,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -2257,6 +2236,11 @@
                         "type": "integer",
                         "description": "绠$悊ID",
                         "name": "sysUserId",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -2982,7 +2966,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -2995,6 +2978,11 @@
                     {
                         "type": "string",
                         "name": "name",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -3028,7 +3016,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -3069,6 +3056,11 @@
                     {
                         "type": "string",
                         "name": "startCreatedAt",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -3370,7 +3362,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -3383,6 +3374,11 @@
                     {
                         "type": "string",
                         "name": "nickname",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -3426,7 +3422,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -3467,6 +3462,11 @@
                     {
                         "type": "string",
                         "name": "startCreatedAt",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -3510,7 +3510,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -3551,6 +3550,11 @@
                     {
                         "type": "string",
                         "name": "startCreatedAt",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -4206,7 +4210,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -4279,6 +4282,11 @@
                     {
                         "type": "string",
                         "name": "unit",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -4312,7 +4320,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -4413,6 +4420,11 @@
                     {
                         "type": "string",
                         "name": "unit",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -4446,7 +4458,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -4547,6 +4558,11 @@
                     {
                         "type": "string",
                         "name": "unit",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -4622,7 +4638,7 @@
                         "in": "body",
                         "required": true,
                         "schema": {
-                            "$ref": "#/definitions/purchaserequest.AddPurchase"
+                            "$ref": "#/definitions/purchaserequest.UpdatePurchase"
                         }
                     }
                 ],
@@ -4665,7 +4681,7 @@
                 "summary": "鍒涘缓閲囪喘鍗�",
                 "parameters": [
                     {
-                        "description": "閲囪喘鍗曠敤鎴峰悕, 閲囪喘鍗曟墜鏈哄彿鐮�",
+                        "description": "閲囪喘鍗�,閲囪喘鍗曚骇鍝�",
                         "name": "data",
                         "in": "body",
                         "required": true,
@@ -4833,6 +4849,166 @@
                 "responses": {
                     "200": {
                         "description": "鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/response.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "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"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/purchase/qualityInspectList": {
+            "get": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "consumes": [
+                    "application/json"
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "QualityInspect"
+                ],
+                "summary": "鍒嗛〉鑾峰彇璐ㄦ鍗曞垪琛�",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "鍏抽敭瀛�",
+                        "name": "keyword",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "椤电爜",
+                        "name": "page",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "姣忛〉澶у皬",
+                        "name": "pageSize",
+                        "in": "query"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鍒嗛〉鑾峰彇璐ㄦ鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺",
                         "schema": {
                             "allOf": [
                                 {
@@ -5095,7 +5271,6 @@
                     },
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -5157,6 +5332,11 @@
                     },
                     {
                         "type": "string",
+                        "name": "updated_at",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
                         "name": "url",
                         "in": "query"
                     }
@@ -5211,7 +5391,6 @@
                     },
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -5297,6 +5476,11 @@
                     {
                         "type": "string",
                         "name": "supplierType",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -5487,7 +5671,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -5500,6 +5683,11 @@
                     {
                         "type": "string",
                         "name": "name",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -5533,7 +5721,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -5574,6 +5761,11 @@
                     {
                         "type": "string",
                         "name": "startCreatedAt",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -5745,7 +5937,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -5777,6 +5968,11 @@
                         "type": "string",
                         "description": "瀛楀吀鍚嶏紙鑻憋級",
                         "name": "type",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -5826,7 +6022,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -5876,6 +6071,11 @@
                         "type": "string",
                         "description": "瀛楀吀鍚嶏紙鑻憋級",
                         "name": "type",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -6074,7 +6274,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -6106,6 +6305,11 @@
                         "type": "integer",
                         "description": "鍏宠仈鏍囪",
                         "name": "sysDictionaryID",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -6161,7 +6365,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -6211,6 +6414,11 @@
                         "type": "integer",
                         "description": "鍏宠仈鏍囪",
                         "name": "sysDictionaryID",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -6477,7 +6685,6 @@
                     },
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -6527,6 +6734,11 @@
                         "type": "integer",
                         "description": "璇锋眰鐘舵��",
                         "name": "status",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -6594,7 +6806,6 @@
                     },
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -6662,6 +6873,11 @@
                         "type": "integer",
                         "description": "璇锋眰鐘舵��",
                         "name": "status",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -8213,7 +8429,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "customerName": {
@@ -8243,6 +8458,9 @@
                 "sysUserId": {
                     "description": "绠$悊ID",
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -8253,7 +8471,6 @@
                     "type": "integer"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "exaFileChunk": {
@@ -8277,6 +8494,9 @@
                 },
                 "isFinish": {
                     "type": "boolean"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -8284,7 +8504,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "exaFileID": {
@@ -8299,6 +8518,9 @@
                 "id": {
                     "description": "涓婚敭ID",
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -8306,7 +8528,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "id": {
@@ -8325,11 +8546,50 @@
                     "description": "鏂囦欢鏍囩",
                     "type": "string"
                 },
+                "updated_at": {
+                    "type": "string"
+                },
                 "url": {
                     "description": "鏂囦欢鍦板潃",
                     "type": "string"
                 }
             }
+        },
+        "purchase.OrderStatus": {
+            "type": "integer",
+            "enum": [
+                1,
+                2,
+                3,
+                4
+            ],
+            "x-enum-comments": {
+                "OrderStatusCompleted": "宸插畬鎴�",
+                "OrderStatusConfirmed": "宸蹭笅鍗�",
+                "OrderStatusReceived": "宸插埌璐�",
+                "OrderStatusStored": "宸插叆搴�"
+            },
+            "x-enum-varnames": [
+                "OrderStatusConfirmed",
+                "OrderStatusReceived",
+                "OrderStatusStored",
+                "OrderStatusCompleted"
+            ]
+        },
+        "purchase.PriceAdjustmentType": {
+            "type": "integer",
+            "enum": [
+                1,
+                2
+            ],
+            "x-enum-comments": {
+                "PriceAdjustmentTypeAdd": "澧炲姞",
+                "PriceAdjustmentTypeSub": "鍑忓皯"
+            },
+            "x-enum-varnames": [
+                "PriceAdjustmentTypeAdd",
+                "PriceAdjustmentTypeSub"
+            ]
         },
         "purchase.Purchase": {
             "type": "object",
@@ -8339,40 +8599,136 @@
                     "type": "string"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
+                    "type": "string"
+                },
+                "creator": {
+                    "description": "鍒跺崟浜�",
                     "type": "string"
                 },
                 "deliveryDate": {
                     "description": "浜や粯鏃ユ湡",
                     "type": "string"
                 },
+                "handledBy": {
+                    "description": "缁忓姙浜�",
+                    "type": "string"
+                },
                 "id": {
                     "description": "涓婚敭ID",
                     "type": "integer"
+                },
+                "invoiceAmount": {
+                    "description": "宸叉敹绁ㄩ噾棰�",
+                    "type": "number"
                 },
                 "name": {
                     "description": "閲囪喘鍚嶇О",
                     "type": "string"
                 },
+                "number": {
+                    "description": "閲囪喘缂栧彿",
+                    "type": "string"
+                },
+                "orderSource": {
+                    "description": "鍗曟嵁鏉ユ簮",
+                    "type": "string"
+                },
+                "orderType": {
+                    "description": "鍗曟嵁绫诲瀷",
+                    "type": "string"
+                },
+                "paidAmount": {
+                    "description": "宸蹭粯閲戦",
+                    "type": "number"
+                },
                 "phone": {
                     "description": "鑱旂郴浜虹數璇�",
                     "type": "string"
+                },
+                "priceAdjustment": {
+                    "description": "浠锋牸璋冩暣鍊�",
+                    "type": "number"
+                },
+                "priceAdjustmentType": {
+                    "description": "浠锋牸璋冩暣绫诲瀷",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/purchase.PriceAdjustmentType"
+                        }
+                    ]
+                },
+                "principal": {
+                    "description": "閲囪喘璐熻矗浜�",
+                    "type": "string"
+                },
+                "purchaseType": {
+                    "$ref": "#/definitions/purchase.PurchaseType"
                 },
                 "purchaseTypeId": {
                     "description": "閲囪喘绫诲瀷id",
                     "type": "integer"
                 },
+                "quantity": {
+                    "description": "閲囪喘鏁伴噺",
+                    "type": "number"
+                },
+                "realTotalPrice": {
+                    "description": "鏈�缁堜环鏍�",
+                    "type": "number"
+                },
                 "remark": {
                     "description": "澶囨敞",
                     "type": "string"
+                },
+                "shouldPayAmount": {
+                    "description": "搴斾粯閲戦",
+                    "type": "number"
                 },
                 "signingDate": {
                     "description": "绛剧害鏃ユ湡",
                     "type": "string"
                 },
+                "status": {
+                    "description": "鐘舵��",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/purchase.OrderStatus"
+                        }
+                    ]
+                },
+                "supplier": {
+                    "$ref": "#/definitions/test.Supplier"
+                },
                 "supplierId": {
                     "description": "渚涘簲鍟唅d",
                     "type": "integer"
+                },
+                "totalPrice": {
+                    "description": "浠风◣鍚堣",
+                    "type": "number"
+                },
+                "unInvoiceAmount": {
+                    "description": "鏈敹绁ㄩ噾棰�",
+                    "type": "number"
+                },
+                "updated_at": {
+                    "type": "string"
+                },
+                "warehouse": {
+                    "description": "鏀惰揣浠撳簱",
+                    "type": "string"
+                },
+                "wholeDiscount": {
+                    "description": "鏁村崟鎶樻墸鍊�",
+                    "type": "number"
+                },
+                "wholeDiscountType": {
+                    "description": "鏁村崟鎶樻墸绫诲瀷",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/purchase.WholeDiscountType"
+                        }
+                    ]
                 }
             }
         },
@@ -8384,7 +8740,6 @@
                     "type": "number"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "id": {
@@ -8410,8 +8765,53 @@
                 "total": {
                     "description": "閲囪喘鎬讳环",
                     "type": "number"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
+        },
+        "purchase.PurchaseType": {
+            "type": "object",
+            "properties": {
+                "created_at": {
+                    "type": "string"
+                },
+                "id": {
+                    "description": "涓婚敭ID",
+                    "type": "integer"
+                },
+                "name": {
+                    "description": "閲囪喘绫诲瀷",
+                    "type": "string"
+                },
+                "pin": {
+                    "description": "鏄惁缃《",
+                    "type": "boolean"
+                },
+                "sort": {
+                    "description": "鎺掑簭",
+                    "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
+                }
+            }
+        },
+        "purchase.WholeDiscountType": {
+            "type": "integer",
+            "enum": [
+                1,
+                2
+            ],
+            "x-enum-comments": {
+                "WholeDiscountTypeDiscount": "鐩存帴闄嶄环",
+                "WholeDiscountTypePercent": "鐧惧垎姣旈檷浠�"
+            },
+            "x-enum-varnames": [
+                "WholeDiscountTypePercent",
+                "WholeDiscountTypeDiscount"
+            ]
         },
         "purchaserequest.AddPurchase": {
             "type": "object",
@@ -8423,7 +8823,131 @@
                     }
                 },
                 "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"
+                },
+                "priceAdjustment": {
+                    "description": "浠锋牸璋冩暣鍊�",
+                    "type": "number"
+                },
+                "priceAdjustmentType": {
+                    "description": "浠锋牸璋冩暣绫诲瀷",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/purchase.PriceAdjustmentType"
+                        }
+                    ]
+                },
+                "purchaseTypeId": {
+                    "description": "閲囪喘绫诲瀷id",
+                    "type": "integer"
+                },
+                "quantity": {
+                    "description": "閲囪喘鏁伴噺",
+                    "type": "number"
+                },
+                "realTotalPrice": {
+                    "description": "鏈�缁堜环鏍�",
+                    "type": "number"
+                },
+                "remark": {
+                    "description": "澶囨敞",
+                    "type": "string"
+                },
+                "signingDate": {
+                    "description": "绛剧害鏃ユ湡",
+                    "type": "string"
+                },
+                "status": {
+                    "description": "鐘舵��",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/purchase.OrderStatus"
+                        }
+                    ]
+                },
+                "supplierId": {
+                    "description": "渚涘簲鍟唅d",
+                    "type": "integer"
+                },
+                "totalPrice": {
+                    "description": "浠风◣鍚堣",
+                    "type": "number"
+                },
+                "wholeDiscount": {
+                    "description": "鏁村崟鎶樻墸鍊�",
+                    "type": "number"
+                },
+                "wholeDiscountType": {
+                    "description": "鏁村崟鎶樻墸绫诲瀷",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/purchase.WholeDiscountType"
+                        }
+                    ]
+                }
+            }
+        },
+        "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"
                 }
             }
         },
@@ -8673,7 +9197,6 @@
                     "type": "string"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "desc": {
@@ -8710,6 +9233,9 @@
                 },
                 "path": {
                     "description": "api璺緞",
+                    "type": "string"
+                },
+                "updated_at": {
                     "type": "string"
                 }
             }
@@ -8883,13 +9409,65 @@
                 }
             }
         },
+        "response.PurchaseProducts": {
+            "type": "object",
+            "properties": {
+                "amount": {
+                    "description": "閲囪喘鏁伴噺",
+                    "type": "number"
+                },
+                "deliveryTime": {
+                    "type": "integer"
+                },
+                "modelNumber": {
+                    "type": "string"
+                },
+                "name": {
+                    "type": "string"
+                },
+                "number": {
+                    "type": "string"
+                },
+                "price": {
+                    "description": "閲囪喘鍗曚环",
+                    "type": "number"
+                },
+                "productId": {
+                    "description": "浜у搧id",
+                    "type": "integer"
+                },
+                "productType": {
+                    "type": "string"
+                },
+                "purchaseId": {
+                    "description": "閲囪喘id",
+                    "type": "integer"
+                },
+                "purchasePrice": {
+                    "type": "number"
+                },
+                "shippingDuration": {
+                    "type": "integer"
+                },
+                "specifications": {
+                    "type": "string"
+                },
+                "total": {
+                    "description": "閲囪喘鎬讳环",
+                    "type": "number"
+                },
+                "unit": {
+                    "type": "string"
+                }
+            }
+        },
         "response.PurchaseResponse": {
             "type": "object",
             "properties": {
                 "productList": {
                     "type": "array",
                     "items": {
-                        "$ref": "#/definitions/purchase.PurchaseProducts"
+                        "$ref": "#/definitions/response.PurchaseProducts"
                     }
                 },
                 "purchase": {
@@ -9205,7 +9783,6 @@
                     "type": "string"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "description": {
@@ -9222,6 +9799,9 @@
                 },
                 "path": {
                     "description": "api璺緞",
+                    "type": "string"
+                },
+                "updated_at": {
                     "type": "string"
                 }
             }
@@ -9280,7 +9860,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "desc": {
@@ -9294,6 +9873,9 @@
                     "type": "string"
                 },
                 "packageName": {
+                    "type": "string"
+                },
+                "updated_at": {
                     "type": "string"
                 }
             }
@@ -9318,7 +9900,6 @@
                     "type": "string"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "hidden": {
@@ -9364,6 +9945,9 @@
                 "sort": {
                     "description": "鎺掑簭鏍囪",
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -9371,7 +9955,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "desc": {
@@ -9386,6 +9969,9 @@
                 },
                 "sysBaseMenuID": {
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -9393,7 +9979,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "id": {
@@ -9411,6 +9996,9 @@
                     "description": "鍦板潃鏍忔惡甯﹀弬鏁颁负params杩樻槸query",
                     "type": "string"
                 },
+                "updated_at": {
+                    "type": "string"
+                },
                 "value": {
                     "description": "鍦板潃鏍忔惡甯﹀弬鏁扮殑鍊�",
                     "type": "string"
@@ -9421,7 +10009,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "desc": {
@@ -9449,6 +10036,9 @@
                 "type": {
                     "description": "瀛楀吀鍚嶏紙鑻憋級",
                     "type": "string"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -9456,7 +10046,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "id": {
@@ -9478,6 +10067,9 @@
                 "sysDictionaryID": {
                     "description": "鍏宠仈鏍囪",
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 },
                 "value": {
                     "description": "瀛楀吀鍊�",
@@ -9511,7 +10103,6 @@
                     "type": "string"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "hidden": {
@@ -9560,6 +10151,9 @@
                 "sort": {
                     "description": "鎺掑簭鏍囪",
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -9575,7 +10169,6 @@
                     "type": "string"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "error_message": {
@@ -9609,6 +10202,9 @@
                 "status": {
                     "description": "璇锋眰鐘舵��",
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 },
                 "user": {
                     "$ref": "#/definitions/system.SysUser"
@@ -9644,7 +10240,6 @@
                     "type": "string"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "email": {
@@ -9675,6 +10270,9 @@
                     "description": "鐢ㄦ埛渚ц竟涓婚",
                     "type": "string"
                 },
+                "updated_at": {
+                    "type": "string"
+                },
                 "userName": {
                     "description": "鐢ㄦ埛鐧诲綍鍚�",
                     "type": "string"
@@ -9697,14 +10295,7 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
-                },
-                "fileContent": {
-                    "type": "array",
-                    "items": {
-                        "type": "integer"
-                    }
                 },
                 "fileName": {
                     "type": "string"
@@ -9715,6 +10306,9 @@
                 },
                 "supplierID": {
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -9722,7 +10316,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "id": {
@@ -9731,6 +10324,9 @@
                 },
                 "name": {
                     "type": "string"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -9738,7 +10334,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "id": {
@@ -9746,6 +10341,9 @@
                     "type": "integer"
                 },
                 "nickname": {
+                    "type": "string"
+                },
+                "updated_at": {
                     "type": "string"
                 },
                 "userName": {
@@ -9760,7 +10358,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "deliveryTime": {
@@ -9808,6 +10405,9 @@
                 },
                 "unit": {
                     "type": "string"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -9826,8 +10426,10 @@
                 "contact": {
                     "type": "string"
                 },
+                "contract": {
+                    "$ref": "#/definitions/test.Contract"
+                },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "detailAddress": {
@@ -9864,6 +10466,9 @@
                 "supplierType": {
                     "type": "string"
                 },
+                "updated_at": {
+                    "type": "string"
+                },
                 "url": {
                     "type": "string"
                 }
@@ -9873,7 +10478,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "id": {
@@ -9882,6 +10486,9 @@
                 },
                 "name": {
                     "type": "string"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         }

--
Gitblit v1.8.0