From d3a78e4c791821b298075b700e9fc14030d12ec2 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 29 八月 2023 15:28:43 +0800 Subject: [PATCH] 采购数量,经办人,制单人 --- docs/docs.go | 730 ++++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 578 insertions(+), 152 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index a341b7b..92af44b 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1899,6 +1899,57 @@ } } }, + "/con/downloadContract": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "涓嬭浇Contract", + "parameters": [ + { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, + { + "type": "string", + "name": "fileName", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "integer", + "name": "supplierID", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"涓嬭浇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/con/findContract": { "get": { "security": [ @@ -1918,12 +1969,9 @@ "summary": "鐢╥d鏌ヨContract", "parameters": [ { - "type": "array", - "items": { - "type": "integer" - }, - "collectionFormat": "csv", - "name": "fileContent", + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", "in": "query" }, { @@ -1973,16 +2021,13 @@ "parameters": [ { "type": "string", - "name": "endCreatedAt", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", "in": "query" }, { - "type": "array", - "items": { - "type": "integer" - }, - "collectionFormat": "csv", - "name": "fileContent", + "type": "string", + "name": "endCreatedAt", "in": "query" }, { @@ -2054,12 +2099,9 @@ "summary": "棰勮Contract", "parameters": [ { - "type": "array", - "items": { - "type": "integer" - }, - "collectionFormat": "csv", - "name": "fileContent", + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", "in": "query" }, { @@ -2145,6 +2187,12 @@ ], "summary": "鑾峰彇鍗曚竴瀹㈡埛淇℃伅", "parameters": [ + { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, { "type": "string", "description": "瀹㈡埛鍚�", @@ -2897,6 +2945,12 @@ "summary": "鐢╥d鏌ヨIndustry", "parameters": [ { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, + { "type": "integer", "description": "涓婚敭ID", "name": "id", @@ -2936,6 +2990,12 @@ ], "summary": "鍒嗛〉鑾峰彇Industry鍒楄〃", "parameters": [ + { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, { "type": "string", "name": "endCreatedAt", @@ -3273,6 +3333,12 @@ "summary": "鐢╥d鏌ヨMember", "parameters": [ { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, + { "type": "integer", "description": "涓婚敭ID", "name": "id", @@ -3322,6 +3388,12 @@ ], "summary": "鍒嗛〉鑾峰彇Member鍒楄〃", "parameters": [ + { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, { "type": "string", "name": "endCreatedAt", @@ -3400,6 +3472,12 @@ ], "summary": "鍒嗛〉鑾峰彇Member鍒楄〃", "parameters": [ + { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, { "type": "string", "name": "endCreatedAt", @@ -4091,6 +4169,12 @@ "summary": "鐢╥d鏌ヨProduct", "parameters": [ { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, + { "type": "integer", "name": "deliveryTime", "in": "query" @@ -4191,133 +4275,11 @@ "summary": "鍒嗛〉鑾峰彇Product鍒楄〃", "parameters": [ { - "type": "integer", - "name": "deliveryTime", - "in": "query" - }, - { "type": "string", - "name": "endCreatedAt", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", "in": "query" }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "description": "鍏抽敭瀛�", - "name": "keyword", - "in": "query" - }, - { - "type": "integer", - "name": "maximumStock", - "in": "query" - }, - { - "type": "integer", - "name": "minimumStock", - "in": "query" - }, - { - "type": "string", - "name": "modelNumber", - "in": "query" - }, - { - "type": "string", - "name": "name", - "in": "query" - }, - { - "type": "string", - "name": "number", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - }, - { - "type": "string", - "name": "productType", - "in": "query" - }, - { - "type": "number", - "name": "purchasePrice", - "in": "query" - }, - { - "type": "string", - "name": "remark", - "in": "query" - }, - { - "type": "integer", - "name": "shippingDuration", - "in": "query" - }, - { - "type": "string", - "name": "specifications", - "in": "query" - }, - { - "type": "string", - "name": "startCreatedAt", - "in": "query" - }, - { - "type": "integer", - "name": "supplierId", - "in": "query" - }, - { - "type": "string", - "name": "unit", - "in": "query" - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/p/getProductListFromGrpc": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Product" - ], - "summary": "鍒嗛〉鑾峰彇Product鍒楄〃", - "parameters": [ { "type": "integer", "name": "deliveryTime", @@ -4447,6 +4409,12 @@ "summary": "鍒嗛〉鑾峰彇Product鍒楄〃", "parameters": [ { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, + { "type": "integer", "name": "deliveryTime", "in": "query" @@ -4476,6 +4444,11 @@ { "type": "integer", "name": "minimumStock", + "in": "query" + }, + { + "type": "string", + "name": "modelNumber", "in": "query" }, { @@ -4522,7 +4495,17 @@ }, { "type": "string", + "name": "specifications", + "in": "query" + }, + { + "type": "string", "name": "startCreatedAt", + "in": "query" + }, + { + "type": "integer", + "name": "supplierId", "in": "query" }, { @@ -4603,7 +4586,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/purchaserequest.AddPurchase" + "$ref": "#/definitions/purchaserequest.UpdatePurchase" } } ], @@ -4790,7 +4773,7 @@ "tags": [ "Purchase" ], - "summary": "鍒嗛〉鑾峰彇鏉冮檺閲囪喘鍗曞垪琛�", + "summary": "鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�", "parameters": [ { "type": "string", @@ -4813,7 +4796,7 @@ ], "responses": { "200": { - "description": "鍒嗛〉鑾峰彇鏉冮檺閲囪喘鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", + "description": "鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", "schema": { "allOf": [ { @@ -4825,6 +4808,152 @@ "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/submit/{id}": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鎻愪氦閲囪喘鍗�", + "parameters": [ + { + "type": "integer", + "description": "閲囪喘鍗旾D", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎻愪氦閲囪喘鍗�", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { "msg": { "type": "string" } @@ -5028,6 +5157,12 @@ }, { "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, + { + "type": "string", "name": "detailAddress", "in": "query" }, @@ -5134,6 +5269,12 @@ { "type": "string", "name": "contact", + "in": "query" + }, + { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", "in": "query" }, { @@ -5407,6 +5548,12 @@ "summary": "鐢╥d鏌ヨSupplierType", "parameters": [ { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, + { "type": "integer", "description": "涓婚敭ID", "name": "id", @@ -5446,6 +5593,12 @@ ], "summary": "鍒嗛〉鑾峰彇SupplierType鍒楄〃", "parameters": [ + { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, { "type": "string", "name": "endCreatedAt", @@ -5654,6 +5807,12 @@ "parameters": [ { "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, + { + "type": "string", "description": "鎻忚堪", "name": "desc", "in": "query" @@ -5727,6 +5886,12 @@ ], "summary": "鍒嗛〉鑾峰彇SysDictionary鍒楄〃", "parameters": [ + { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, { "type": "string", "description": "鎻忚堪", @@ -5970,6 +6135,12 @@ "summary": "鐢╥d鏌ヨSysDictionaryDetail", "parameters": [ { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, + { "type": "integer", "description": "涓婚敭ID", "name": "id", @@ -6050,6 +6221,12 @@ ], "summary": "鍒嗛〉鑾峰彇SysDictionaryDetail鍒楄〃", "parameters": [ + { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, { "type": "integer", "description": "涓婚敭ID", @@ -6362,6 +6539,12 @@ }, { "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", + "in": "query" + }, + { + "type": "string", "description": "閿欒淇℃伅", "name": "error_message", "in": "query" @@ -6469,6 +6652,12 @@ "type": "string", "description": "璇锋眰Body", "name": "body", + "in": "query" + }, + { + "type": "string", + "description": "鍒涘缓鏃堕棿", + "name": "created_at", "in": "query" }, { @@ -8085,6 +8274,10 @@ "example.ExaCustomer": { "type": "object", "properties": { + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "customerName": { "description": "瀹㈡埛鍚�", "type": "string" @@ -8121,6 +8314,10 @@ "chunkTotal": { "type": "integer" }, + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "exaFileChunk": { "type": "array", "items": { @@ -8148,6 +8345,10 @@ "example.ExaFileChunk": { "type": "object", "properties": { + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "exaFileID": { "type": "integer" }, @@ -8166,6 +8367,10 @@ "example.ExaFileUploadAndDownload": { "type": "object", "properties": { + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "id": { "description": "涓婚敭ID", "type": "integer" @@ -8188,11 +8393,36 @@ } } }, + "purchase.OrderStatus": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4 + ], + "x-enum-comments": { + "OrderStatusCompleted": "宸插畬鎴�", + "OrderStatusConfirmed": "宸蹭笅鍗�", + "OrderStatusReceived": "宸插埌璐�", + "OrderStatusStored": "宸插叆搴�" + }, + "x-enum-varnames": [ + "OrderStatusConfirmed", + "OrderStatusReceived", + "OrderStatusStored", + "OrderStatusCompleted" + ] + }, "purchase.Purchase": { "type": "object", "properties": { "contact": { "description": "鑱旂郴浜�", + "type": "string" + }, + "created_at": { + "description": "鍒涘缓鏃堕棿", "type": "string" }, "deliveryDate": { @@ -8207,9 +8437,16 @@ "description": "閲囪喘鍚嶇О", "type": "string" }, + "number": { + "description": "閲囪喘缂栧彿", + "type": "string" + }, "phone": { "description": "鑱旂郴浜虹數璇�", "type": "string" + }, + "purchaseType": { + "$ref": "#/definitions/purchase.PurchaseType" }, "purchaseTypeId": { "description": "閲囪喘绫诲瀷id", @@ -8223,6 +8460,17 @@ "description": "绛剧害鏃ユ湡", "type": "string" }, + "status": { + "description": "鐘舵��", + "allOf": [ + { + "$ref": "#/definitions/purchase.OrderStatus" + } + ] + }, + "supplier": { + "$ref": "#/definitions/test.Supplier" + }, "supplierId": { "description": "渚涘簲鍟唅d", "type": "integer" @@ -8235,6 +8483,10 @@ "amount": { "description": "閲囪喘鏁伴噺", "type": "number" + }, + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" }, "id": { "description": "涓婚敭ID", @@ -8262,6 +8514,27 @@ } } }, + "purchase.PurchaseType": { + "type": "object", + "properties": { + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "name": { + "description": "閲囪喘绫诲瀷", + "type": "string" + }, + "pin": { + "description": "鏄惁缃《", + "type": "boolean" + }, + "sort": { + "description": "鎺掑簭", + "type": "integer" + } + } + }, "purchaserequest.AddPurchase": { "type": "object", "properties": { @@ -8272,7 +8545,95 @@ } }, "purchase": { - "$ref": "#/definitions/purchase.Purchase" + "$ref": "#/definitions/purchaserequest.Purchase" + } + } + }, + "purchaserequest.Purchase": { + "type": "object", + "properties": { + "contact": { + "description": "鑱旂郴浜�", + "type": "string" + }, + "deliveryDate": { + "description": "浜や粯鏃ユ湡", + "type": "string" + }, + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "name": { + "description": "閲囪喘鍚嶇О", + "type": "string" + }, + "number": { + "description": "閲囪喘缂栧彿", + "type": "string" + }, + "phone": { + "description": "鑱旂郴浜虹數璇�", + "type": "string" + }, + "purchaseTypeId": { + "description": "閲囪喘绫诲瀷id", + "type": "integer" + }, + "remark": { + "description": "澶囨敞", + "type": "string" + }, + "signingDate": { + "description": "绛剧害鏃ユ湡", + "type": "string" + }, + "status": { + "description": "鐘舵��", + "allOf": [ + { + "$ref": "#/definitions/purchase.OrderStatus" + } + ] + }, + "supplierId": { + "description": "渚涘簲鍟唅d", + "type": "integer" + } + } + }, + "purchaserequest.PurchaseType": { + "type": "object", + "properties": { + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "name": { + "description": "閲囪喘绫诲瀷", + "type": "string" + }, + "pin": { + "description": "鏄惁缃《", + "type": "boolean" + }, + "sort": { + "description": "鎺掑簭", + "type": "integer" + } + } + }, + "purchaserequest.UpdatePurchase": { + "type": "object", + "properties": { + "productList": { + "type": "array", + "items": { + "$ref": "#/definitions/purchase.PurchaseProducts" + } + }, + "purchase": { + "$ref": "#/definitions/purchaserequest.Purchase" } } }, @@ -8519,6 +8880,10 @@ "properties": { "apiGroup": { "description": "api缁�", + "type": "string" + }, + "created_at": { + "description": "鍒涘缓鏃堕棿", "type": "string" }, "desc": { @@ -9049,6 +9414,10 @@ "description": "api缁�", "type": "string" }, + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "description": { "description": "api涓枃鎻忚堪", "type": "string" @@ -9120,6 +9489,10 @@ "system.SysAutoCode": { "type": "object", "properties": { + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "desc": { "type": "string" }, @@ -9152,6 +9525,10 @@ }, "component": { "description": "瀵瑰簲鍓嶇鏂囦欢璺緞", + "type": "string" + }, + "created_at": { + "description": "鍒涘缓鏃堕棿", "type": "string" }, "hidden": { @@ -9203,6 +9580,10 @@ "system.SysBaseMenuBtn": { "type": "object", "properties": { + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "desc": { "type": "string" }, @@ -9221,6 +9602,10 @@ "system.SysBaseMenuParameter": { "type": "object", "properties": { + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "id": { "description": "涓婚敭ID", "type": "integer" @@ -9245,6 +9630,10 @@ "system.SysDictionary": { "type": "object", "properties": { + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "desc": { "description": "鎻忚堪", "type": "string" @@ -9276,6 +9665,10 @@ "system.SysDictionaryDetail": { "type": "object", "properties": { + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "id": { "description": "涓婚敭ID", "type": "integer" @@ -9325,6 +9718,10 @@ }, "component": { "description": "瀵瑰簲鍓嶇鏂囦欢璺緞", + "type": "string" + }, + "created_at": { + "description": "鍒涘缓鏃堕棿", "type": "string" }, "hidden": { @@ -9385,6 +9782,10 @@ }, "body": { "description": "璇锋眰Body", + "type": "string" + }, + "created_at": { + "description": "鍒涘缓鏃堕棿", "type": "string" }, "error_message": { @@ -9452,6 +9853,10 @@ "description": "鍩虹棰滆壊", "type": "string" }, + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "email": { "description": "鐢ㄦ埛閭", "type": "string" @@ -9501,11 +9906,9 @@ "test.Contract": { "type": "object", "properties": { - "fileContent": { - "type": "array", - "items": { - "type": "integer" - } + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" }, "fileName": { "type": "string" @@ -9522,6 +9925,10 @@ "test.Industry": { "type": "object", "properties": { + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "id": { "description": "涓婚敭ID", "type": "integer" @@ -9534,6 +9941,10 @@ "test.Member": { "type": "object", "properties": { + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "id": { "description": "涓婚敭ID", "type": "integer" @@ -9552,6 +9963,10 @@ "test.Product": { "type": "object", "properties": { + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "deliveryTime": { "type": "integer" }, @@ -9615,6 +10030,13 @@ "contact": { "type": "string" }, + "contract": { + "$ref": "#/definitions/test.Contract" + }, + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "detailAddress": { "type": "string" }, @@ -9657,6 +10079,10 @@ "test.SupplierType": { "type": "object", "properties": { + "created_at": { + "description": "鍒涘缓鏃堕棿", + "type": "string" + }, "id": { "description": "涓婚敭ID", "type": "integer" -- Gitblit v1.8.0