From ee6a6653fc5fd35d44686a8f874ec83ecf4b47db Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期六, 26 八月 2023 16:16:01 +0800 Subject: [PATCH] fix --- docs/docs.go | 1081 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 1,039 insertions(+), 42 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index e1ac368..9eb2c74 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1780,6 +1780,353 @@ } } }, + "/con/createContract": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "multipart/form-data" + ], + "tags": [ + "Contract" + ], + "summary": "鍒涘缓Contract", + "parameters": [ + { + "type": "file", + "description": "涓婁紶鏂囦欢", + "name": "file", + "in": "formData", + "required": true + }, + { + "type": "string", + "description": "鏂囦欢鍚嶇О", + "name": "name", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/deleteContract": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鍒犻櫎Contract", + "parameters": [ + { + "description": "鍒犻櫎Contract", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Contract" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/deleteContractByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鎵归噺鍒犻櫎Contract", + "parameters": [ + { + "description": "鎵归噺鍒犻櫎Contract", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/findContract": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鐢╥d鏌ヨContract", + "parameters": [ + { + "type": "array", + "items": { + "type": "integer" + }, + "collectionFormat": "csv", + "name": "fileContent", + "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/getContractList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鍒嗛〉鑾峰彇Contract鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "array", + "items": { + "type": "integer" + }, + "collectionFormat": "csv", + "name": "fileContent", + "in": "query" + }, + { + "type": "string", + "name": "fileName", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + }, + { + "type": "integer", + "name": "supplierID", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/previewContract": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "棰勮Contract", + "parameters": [ + { + "type": "array", + "items": { + "type": "integer" + }, + "collectionFormat": "csv", + "name": "fileContent", + "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/updateContract": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鏇存柊Contract", + "parameters": [ + { + "description": "鏇存柊Contract", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Contract" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/customer/customer": { "get": { "security": [ @@ -2663,7 +3010,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/test.Industry" + "$ref": "#/definitions/request.IndustryList" } } ], @@ -3253,6 +3600,537 @@ } } }, + "/p/createProduct": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鍒涘缓Product", + "parameters": [ + { + "description": "鍒涘缓Product", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Product" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/deleteProduct": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鍒犻櫎Product", + "parameters": [ + { + "description": "鍒犻櫎Product", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Product" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/deleteProductByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鎵归噺鍒犻櫎Product", + "parameters": [ + { + "description": "鎵归噺鍒犻櫎Product", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/findProduct": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鐢╥d鏌ヨProduct", + "parameters": [ + { + "type": "integer", + "name": "deliveryTime", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "integer", + "name": "maximumStock", + "in": "query" + }, + { + "type": "integer", + "name": "minimumStock", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "number", + "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": "integer", + "name": "supplierId", + "in": "query" + }, + { + "type": "string", + "name": "unit", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/getProductList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鍒嗛〉鑾峰彇Product鍒楄〃", + "parameters": [ + { + "type": "integer", + "name": "deliveryTime", + "in": "query" + }, + { + "type": "string", + "name": "endCreatedAt", + "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": "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", + "in": "query" + }, + { + "type": "string", + "name": "endCreatedAt", + "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": "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/updateProduct": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鏇存柊Product", + "parameters": [ + { + "description": "鏇存柊Product", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Product" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/s/changeSupplierStatus": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "淇敼Supplier鐘舵��", + "parameters": [ + { + "description": "淇敼Supplier鐘舵��", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SupplierStatus" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"淇敼鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/s/createSupplier": { "post": { "security": [ @@ -3416,8 +4294,8 @@ "in": "query" }, { - "type": "string", - "name": "file", + "type": "integer", + "name": "fileId", "in": "query" }, { @@ -3449,6 +4327,11 @@ { "type": "integer", "name": "responsiblePersonId", + "in": "query" + }, + { + "type": "integer", + "name": "status", "in": "query" }, { @@ -3526,8 +4409,8 @@ "in": "query" }, { - "type": "string", - "name": "file", + "type": "integer", + "name": "fileId", "in": "query" }, { @@ -3582,6 +4465,11 @@ { "type": "string", "name": "startCreatedAt", + "in": "query" + }, + { + "type": "integer", + "name": "status", "in": "query" }, { @@ -3889,7 +4777,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/test.SupplierType" + "$ref": "#/definitions/request.SupplierTypeList" } } ], @@ -6140,7 +7028,7 @@ } }, "email": { - "$ref": "#/definitions/github_com_flipped-aurora_gin-vue-admin_server_config.Email" + "$ref": "#/definitions/srm_config.Email" }, "excel": { "$ref": "#/definitions/config.Excel" @@ -6331,6 +7219,10 @@ }, "env": { "description": "鐜鍊�", + "type": "string" + }, + "grpc-url": { + "description": "grpc鏈嶅姟鍦板潃", "type": "string" }, "iplimit-count": { @@ -6549,39 +7441,6 @@ } } }, - "github_com_flipped-aurora_gin-vue-admin_server_config.Email": { - "type": "object", - "properties": { - "from": { - "description": "鍙戜欢浜� 浣犺嚜宸辫鍙戦偖浠剁殑閭", - "type": "string" - }, - "host": { - "description": "鏈嶅姟鍣ㄥ湴鍧� 渚嬪 smtp.qq.com 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚", - "type": "string" - }, - "is-ssl": { - "description": "鏄惁SSL 鏄惁寮�鍚疭SL", - "type": "boolean" - }, - "nickname": { - "description": "鏄电О 鍙戜欢浜烘樀绉� 閫氬父涓鸿嚜宸辩殑閭", - "type": "string" - }, - "port": { - "description": "绔彛 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚 澶у涓� 465", - "type": "integer" - }, - "secret": { - "description": "瀵嗛挜 鐢ㄤ簬鐧诲綍鐨勫瘑閽� 鏈�濂戒笉瑕佺敤閭瀵嗙爜 鍘婚偖绠眘mtp鐢宠涓�涓敤浜庣櫥褰曠殑瀵嗛挜", - "type": "string" - }, - "to": { - "description": "鏀朵欢浜�:澶氫釜浠ヨ嫳鏂囬�楀彿鍒嗛殧 渚嬶細a@qq.com b@qq.com 姝e紡寮�鍙戜腑璇锋妸姝ら」鐩綔涓哄弬鏁颁娇鐢�", - "type": "string" - } - } - }, "request.AddMenuAuthorityInfo": { "type": "object", "properties": { @@ -6666,6 +7525,17 @@ "type": "array", "items": { "type": "integer" + } + } + } + }, + "request.IndustryList": { + "type": "object", + "properties": { + "industries": { + "type": "array", + "items": { + "$ref": "#/definitions/test.Industry" } } } @@ -6864,6 +7734,28 @@ }, "id": { "type": "integer" + } + } + }, + "request.SupplierStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "status": { + "type": "integer" + } + } + }, + "request.SupplierTypeList": { + "type": "object", + "properties": { + "supplierTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/test.SupplierType" + } } } }, @@ -7112,6 +8004,39 @@ "properties": { "user": { "$ref": "#/definitions/system.SysUser" + } + } + }, + "srm_config.Email": { + "type": "object", + "properties": { + "from": { + "description": "鍙戜欢浜� 浣犺嚜宸辫鍙戦偖浠剁殑閭", + "type": "string" + }, + "host": { + "description": "鏈嶅姟鍣ㄥ湴鍧� 渚嬪 smtp.qq.com 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚", + "type": "string" + }, + "is-ssl": { + "description": "鏄惁SSL 鏄惁寮�鍚疭SL", + "type": "boolean" + }, + "nickname": { + "description": "鏄电О 鍙戜欢浜烘樀绉� 閫氬父涓鸿嚜宸辩殑閭", + "type": "string" + }, + "port": { + "description": "绔彛 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚 澶у涓� 465", + "type": "integer" + }, + "secret": { + "description": "瀵嗛挜 鐢ㄤ簬鐧诲綍鐨勫瘑閽� 鏈�濂戒笉瑕佺敤閭瀵嗙爜 鍘婚偖绠眘mtp鐢宠涓�涓敤浜庣櫥褰曠殑瀵嗛挜", + "type": "string" + }, + "to": { + "description": "鏀朵欢浜�:澶氫釜浠ヨ嫳鏂囬�楀彿鍒嗛殧 渚嬶細a@qq.com b@qq.com 姝e紡寮�鍙戜腑璇锋妸姝ら」鐩綔涓哄弬鏁颁娇鐢�", + "type": "string" } } }, @@ -7713,6 +8638,27 @@ } } }, + "test.Contract": { + "type": "object", + "properties": { + "fileContent": { + "type": "array", + "items": { + "type": "integer" + } + }, + "fileName": { + "type": "string" + }, + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "supplierID": { + "type": "integer" + } + } + }, "test.Industry": { "type": "object", "properties": { @@ -7721,6 +8667,54 @@ "type": "integer" }, "name": { + "type": "string" + } + } + }, + "test.Product": { + "type": "object", + "properties": { + "deliveryTime": { + "type": "integer" + }, + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "maximumStock": { + "type": "integer" + }, + "minimumStock": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "number": { + "type": "string" + }, + "productType": { + "type": "string" + }, + "purchasePrice": { + "type": "number" + }, + "remark": { + "type": "string" + }, + "shippingDuration": { + "type": "integer" + }, + "specifications": { + "type": "string" + }, + "supplier": { + "$ref": "#/definitions/test.Supplier" + }, + "supplierId": { + "type": "integer" + }, + "unit": { "type": "string" } } @@ -7746,8 +8740,8 @@ "email": { "type": "string" }, - "file": { - "type": "string" + "fileId": { + "type": "integer" }, "id": { "description": "涓婚敭ID", @@ -7768,6 +8762,9 @@ "responsiblePersonId": { "type": "integer" }, + "status": { + "type": "integer" + }, "supplierType": { "type": "string" }, -- Gitblit v1.8.0