From 963792355013e9e89904a67352312ab3d9acf7f6 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期四, 02 十一月 2023 14:02:05 +0800
Subject: [PATCH] 优化重构

---
 docs/docs.go |  816 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 766 insertions(+), 50 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 064a083..faca9b4 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1919,7 +1919,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -1937,6 +1936,11 @@
                     {
                         "type": "integer",
                         "name": "supplierID",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -1970,7 +1974,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -1988,6 +1991,11 @@
                     {
                         "type": "integer",
                         "name": "supplierID",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -2021,7 +2029,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -2068,6 +2075,11 @@
                         "type": "integer",
                         "name": "supplierID",
                         "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
+                        "in": "query"
                     }
                 ],
                 "responses": {
@@ -2100,7 +2112,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -2118,6 +2129,11 @@
                     {
                         "type": "integer",
                         "name": "supplierID",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -2189,7 +2205,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -2221,6 +2236,11 @@
                         "type": "integer",
                         "description": "绠$悊ID",
                         "name": "sysUserId",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -2946,7 +2966,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -2959,6 +2978,11 @@
                     {
                         "type": "string",
                         "name": "name",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -2992,7 +3016,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -3033,6 +3056,11 @@
                     {
                         "type": "string",
                         "name": "startCreatedAt",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -3334,7 +3362,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -3347,6 +3374,11 @@
                     {
                         "type": "string",
                         "name": "nickname",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -3390,7 +3422,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -3431,6 +3462,11 @@
                     {
                         "type": "string",
                         "name": "startCreatedAt",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -3474,7 +3510,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -3515,6 +3550,11 @@
                     {
                         "type": "string",
                         "name": "startCreatedAt",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -4170,7 +4210,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -4242,7 +4281,17 @@
                     },
                     {
                         "type": "string",
+                        "name": "supplierName",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
                         "name": "unit",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -4276,7 +4325,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -4376,7 +4424,22 @@
                     },
                     {
                         "type": "string",
+                        "name": "supplierName",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "supplierNumber",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
                         "name": "unit",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -4410,7 +4473,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -4510,7 +4572,22 @@
                     },
                     {
                         "type": "string",
+                        "name": "supplierName",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "supplierNumber",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
                         "name": "unit",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -4586,7 +4663,7 @@
                         "in": "body",
                         "required": true,
                         "schema": {
-                            "$ref": "#/definitions/purchaserequest.AddPurchase"
+                            "$ref": "#/definitions/purchaserequest.UpdatePurchase"
                         }
                     }
                 ],
@@ -4629,7 +4706,7 @@
                 "summary": "鍒涘缓閲囪喘鍗�",
                 "parameters": [
                     {
-                        "description": "閲囪喘鍗曠敤鎴峰悕, 閲囪喘鍗曟墜鏈哄彿鐮�",
+                        "description": "閲囪喘鍗�,閲囪喘鍗曚骇鍝�",
                         "name": "data",
                         "in": "body",
                         "required": true,
@@ -4797,6 +4874,208 @@
                 "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": [
+                                {
+                                    "$ref": "#/definitions/response.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/response.PageResult"
+                                        },
+                                        "msg": {
+                                            "type": "string"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/purchase/qualityTest": {
+            "get": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "consumes": [
+                    "application/json"
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "QualityInspect"
+                ],
+                "summary": "QualityTest",
+                "responses": {
+                    "200": {
+                        "description": "鍒嗛〉鑾峰彇璐ㄦ鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺",
                         "schema": {
                             "allOf": [
                                 {
@@ -5059,7 +5338,6 @@
                     },
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -5121,6 +5399,11 @@
                     },
                     {
                         "type": "string",
+                        "name": "updated_at",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
                         "name": "url",
                         "in": "query"
                     }
@@ -5175,7 +5458,6 @@
                     },
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -5261,6 +5543,11 @@
                     {
                         "type": "string",
                         "name": "supplierType",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -5451,7 +5738,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -5464,6 +5750,11 @@
                     {
                         "type": "string",
                         "name": "name",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -5497,7 +5788,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -5538,6 +5828,11 @@
                     {
                         "type": "string",
                         "name": "startCreatedAt",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -5709,7 +6004,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -5741,6 +6035,11 @@
                         "type": "string",
                         "description": "瀛楀吀鍚嶏紙鑻憋級",
                         "name": "type",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -5790,7 +6089,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -5840,6 +6138,11 @@
                         "type": "string",
                         "description": "瀛楀吀鍚嶏紙鑻憋級",
                         "name": "type",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     }
                 ],
@@ -6038,7 +6341,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -6070,6 +6372,11 @@
                         "type": "integer",
                         "description": "鍏宠仈鏍囪",
                         "name": "sysDictionaryID",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -6125,7 +6432,6 @@
                 "parameters": [
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -6175,6 +6481,11 @@
                         "type": "integer",
                         "description": "鍏宠仈鏍囪",
                         "name": "sysDictionaryID",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -6441,7 +6752,6 @@
                     },
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -6491,6 +6801,11 @@
                         "type": "integer",
                         "description": "璇锋眰鐘舵��",
                         "name": "status",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -6558,7 +6873,6 @@
                     },
                     {
                         "type": "string",
-                        "description": "鍒涘缓鏃堕棿",
                         "name": "created_at",
                         "in": "query"
                     },
@@ -6626,6 +6940,11 @@
                         "type": "integer",
                         "description": "璇锋眰鐘舵��",
                         "name": "status",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "updated_at",
                         "in": "query"
                     },
                     {
@@ -8177,7 +8496,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "customerName": {
@@ -8207,6 +8525,9 @@
                 "sysUserId": {
                     "description": "绠$悊ID",
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -8217,7 +8538,6 @@
                     "type": "integer"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "exaFileChunk": {
@@ -8241,6 +8561,9 @@
                 },
                 "isFinish": {
                     "type": "boolean"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -8248,7 +8571,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "exaFileID": {
@@ -8263,6 +8585,9 @@
                 "id": {
                     "description": "涓婚敭ID",
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -8270,7 +8595,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "id": {
@@ -8289,11 +8613,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",
@@ -8303,40 +8666,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"
+                        }
+                    ]
                 }
             }
         },
@@ -8348,7 +8807,6 @@
                     "type": "number"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "id": {
@@ -8374,8 +8832,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",
@@ -8387,7 +8890,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"
                 }
             }
         },
@@ -8637,7 +9264,6 @@
                     "type": "string"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "desc": {
@@ -8674,6 +9300,9 @@
                 },
                 "path": {
                     "description": "api璺緞",
+                    "type": "string"
+                },
+                "updated_at": {
                     "type": "string"
                 }
             }
@@ -8847,13 +9476,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": {
@@ -9169,7 +9850,6 @@
                     "type": "string"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "description": {
@@ -9186,6 +9866,9 @@
                 },
                 "path": {
                     "description": "api璺緞",
+                    "type": "string"
+                },
+                "updated_at": {
                     "type": "string"
                 }
             }
@@ -9244,7 +9927,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "desc": {
@@ -9258,6 +9940,9 @@
                     "type": "string"
                 },
                 "packageName": {
+                    "type": "string"
+                },
+                "updated_at": {
                     "type": "string"
                 }
             }
@@ -9282,7 +9967,6 @@
                     "type": "string"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "hidden": {
@@ -9328,6 +10012,9 @@
                 "sort": {
                     "description": "鎺掑簭鏍囪",
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -9335,7 +10022,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "desc": {
@@ -9350,6 +10036,9 @@
                 },
                 "sysBaseMenuID": {
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -9357,7 +10046,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "id": {
@@ -9375,6 +10063,9 @@
                     "description": "鍦板潃鏍忔惡甯﹀弬鏁颁负params杩樻槸query",
                     "type": "string"
                 },
+                "updated_at": {
+                    "type": "string"
+                },
                 "value": {
                     "description": "鍦板潃鏍忔惡甯﹀弬鏁扮殑鍊�",
                     "type": "string"
@@ -9385,7 +10076,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "desc": {
@@ -9413,6 +10103,9 @@
                 "type": {
                     "description": "瀛楀吀鍚嶏紙鑻憋級",
                     "type": "string"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -9420,7 +10113,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "id": {
@@ -9442,6 +10134,9 @@
                 "sysDictionaryID": {
                     "description": "鍏宠仈鏍囪",
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 },
                 "value": {
                     "description": "瀛楀吀鍊�",
@@ -9475,7 +10170,6 @@
                     "type": "string"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "hidden": {
@@ -9524,6 +10218,9 @@
                 "sort": {
                     "description": "鎺掑簭鏍囪",
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -9539,7 +10236,6 @@
                     "type": "string"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "error_message": {
@@ -9573,6 +10269,9 @@
                 "status": {
                     "description": "璇锋眰鐘舵��",
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 },
                 "user": {
                     "$ref": "#/definitions/system.SysUser"
@@ -9608,7 +10307,6 @@
                     "type": "string"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "email": {
@@ -9639,6 +10337,9 @@
                     "description": "鐢ㄦ埛渚ц竟涓婚",
                     "type": "string"
                 },
+                "updated_at": {
+                    "type": "string"
+                },
                 "userName": {
                     "description": "鐢ㄦ埛鐧诲綍鍚�",
                     "type": "string"
@@ -9661,7 +10362,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "fileName": {
@@ -9673,6 +10373,9 @@
                 },
                 "supplierID": {
                     "type": "integer"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -9680,7 +10383,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "id": {
@@ -9689,6 +10391,9 @@
                 },
                 "name": {
                     "type": "string"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         },
@@ -9696,7 +10401,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "id": {
@@ -9704,6 +10408,9 @@
                     "type": "integer"
                 },
                 "nickname": {
+                    "type": "string"
+                },
+                "updated_at": {
                     "type": "string"
                 },
                 "userName": {
@@ -9718,7 +10425,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "deliveryTime": {
@@ -9764,7 +10470,13 @@
                 "supplierId": {
                     "type": "integer"
                 },
+                "supplierName": {
+                    "type": "string"
+                },
                 "unit": {
+                    "type": "string"
+                },
+                "updated_at": {
                     "type": "string"
                 }
             }
@@ -9788,7 +10500,6 @@
                     "$ref": "#/definitions/test.Contract"
                 },
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "detailAddress": {
@@ -9825,6 +10536,9 @@
                 "supplierType": {
                     "type": "string"
                 },
+                "updated_at": {
+                    "type": "string"
+                },
                 "url": {
                     "type": "string"
                 }
@@ -9834,7 +10548,6 @@
             "type": "object",
             "properties": {
                 "created_at": {
-                    "description": "鍒涘缓鏃堕棿",
                     "type": "string"
                 },
                 "id": {
@@ -9843,6 +10556,9 @@
                 },
                 "name": {
                     "type": "string"
+                },
+                "updated_at": {
+                    "type": "string"
                 }
             }
         }

--
Gitblit v1.8.0