From fdde31710cf0b94560583e1039088c90a21de5d6 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期二, 18 七月 2023 15:12:56 +0800
Subject: [PATCH] add
---
docs/swagger.json | 170 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 168 insertions(+), 2 deletions(-)
diff --git a/docs/swagger.json b/docs/swagger.json
index 27a60ff..77ee54e 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -224,7 +224,7 @@
{
"type": "integer",
"description": "鐪佷唤ID",
- "name": "provinceId",
+ "name": "province_id",
"in": "query"
}
],
@@ -400,7 +400,7 @@
}
},
"/api/client/update": {
- "post": {
+ "put": {
"produces": [
"application/json"
],
@@ -1366,6 +1366,37 @@
"description": "OK",
"schema": {
"$ref": "#/definitions/contextx.Response"
+ }
+ }
+ }
+ }
+ },
+ "/api/data/getAllData": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "Data"
+ ],
+ "summary": "鑾峰彇鎵�鏈夋暟鎹�",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/contextx.Response"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "data": {
+ "$ref": "#/definitions/response.DataResponse"
+ }
+ }
+ }
+ ]
}
}
}
@@ -2454,6 +2485,15 @@
"Province"
],
"summary": "鑾峰彇鐪佷唤鍒楄〃",
+ "parameters": [
+ {
+ "type": "integer",
+ "description": "鍥藉ID",
+ "name": "country_id",
+ "in": "query",
+ "required": true
+ }
+ ],
"responses": {
"200": {
"description": "OK",
@@ -2722,6 +2762,15 @@
"Region"
],
"summary": "鍦板尯鍒楄〃",
+ "parameters": [
+ {
+ "type": "integer",
+ "description": "鍩庡競ID",
+ "name": "city_id",
+ "in": "query",
+ "required": true
+ }
+ ],
"responses": {
"200": {
"description": "OK",
@@ -8839,6 +8888,123 @@
}
}
},
+ "response.DataResponse": {
+ "type": "object",
+ "properties": {
+ "city": {
+ "description": "鍩庡競鏁版嵁",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.City"
+ }
+ },
+ "client_level": {
+ "description": "瀹㈡埛绛夌骇",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.ClientLevel"
+ }
+ },
+ "client_origin": {
+ "description": "瀹㈡埛鏉ユ簮",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.ClientOrigin"
+ }
+ },
+ "client_status": {
+ "description": "瀹㈡埛鐘舵��",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.ClientStatus"
+ }
+ },
+ "client_type": {
+ "description": "瀹㈡埛绫诲瀷",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.ClientType"
+ }
+ },
+ "country": {
+ "description": "鍥藉鏁版嵁",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.Country"
+ }
+ },
+ "enterprise_nature": {
+ "description": "浼佷笟鎬ц川",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.EnterpriseNature"
+ }
+ },
+ "enterprise_scale": {
+ "description": "浼佷笟瑙勬ā",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.EnterpriseScale"
+ }
+ },
+ "industry": {
+ "description": "琛屼笟",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.Industry"
+ }
+ },
+ "province": {
+ "description": "鐪佷唤鏁版嵁",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.Province"
+ }
+ },
+ "region": {
+ "description": "鍖哄煙鏁版嵁",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.Region"
+ }
+ },
+ "registered_capital": {
+ "description": "娉ㄥ唽璧勯噾",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.RegisteredCapital"
+ }
+ },
+ "regular_customers": {
+ "description": "鑰佸鎴疯惀閿�",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.RegularCustomers"
+ }
+ },
+ "sale_stage": {
+ "description": "閿�鍞樁娈�",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.SaleStage"
+ }
+ },
+ "sale_type": {
+ "description": "閿�鍞被鍨�",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.SaleType"
+ }
+ },
+ "sales_source": {
+ "description": "鍟嗘満鏉ユ簮",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.SalesSources"
+ }
+ }
+ }
+ },
"response.EnterpriseNatureResponse": {
"type": "object",
"properties": {
--
Gitblit v1.8.0