From 46681576bd7cf3238f2de9709993c0de533999d5 Mon Sep 17 00:00:00 2001 From: iwanghc Date: Wed, 25 Dec 2024 17:34:20 +0800 Subject: [PATCH] gen swagger: get database driver options api --- sqle/docs/docs.go | 62 ++++++++++++++++++++++++++++++++++++++++++ sqle/docs/swagger.json | 62 ++++++++++++++++++++++++++++++++++++++++++ sqle/docs/swagger.yaml | 40 +++++++++++++++++++++++++++ 3 files changed, 164 insertions(+) diff --git a/sqle/docs/docs.go b/sqle/docs/docs.go index 86576c999..2313f7997 100644 --- a/sqle/docs/docs.go +++ b/sqle/docs/docs.go @@ -1271,6 +1271,29 @@ var doc = `{ } } }, + "/v1/database_driver_options": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "get database driver options", + "tags": [ + "instance" + ], + "summary": "获取实例的额外属性列表", + "operationId": "getDatabaseDriverOptions", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.GetDatabaseDriverOptionsResV1" + } + } + } + } + }, "/v1/import_rule_template": { "get": { "security": [ @@ -13033,6 +13056,26 @@ var doc = `{ } } }, + "v1.DatabaseDriverOptionsV1": { + "type": "object", + "properties": { + "db_type": { + "type": "string" + }, + "logo": { + "type": "array", + "items": { + "type": "integer" + } + }, + "params": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.InstanceAdditionalParamResV1" + } + } + } + }, "v1.DatabaseObject": { "type": "object", "properties": { @@ -13935,6 +13978,25 @@ var doc = `{ } } }, + "v1.GetDatabaseDriverOptionsResV1": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "example": 0 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.DatabaseDriverOptionsV1" + } + }, + "message": { + "type": "string", + "example": "ok" + } + } + }, "v1.GetDepBetweenStageInstanceResV1": { "type": "object", "properties": { diff --git a/sqle/docs/swagger.json b/sqle/docs/swagger.json index 663360d48..e7cbb7dbb 100644 --- a/sqle/docs/swagger.json +++ b/sqle/docs/swagger.json @@ -1255,6 +1255,29 @@ } } }, + "/v1/database_driver_options": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "get database driver options", + "tags": [ + "instance" + ], + "summary": "获取实例的额外属性列表", + "operationId": "getDatabaseDriverOptions", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.GetDatabaseDriverOptionsResV1" + } + } + } + } + }, "/v1/import_rule_template": { "get": { "security": [ @@ -13017,6 +13040,26 @@ } } }, + "v1.DatabaseDriverOptionsV1": { + "type": "object", + "properties": { + "db_type": { + "type": "string" + }, + "logo": { + "type": "array", + "items": { + "type": "integer" + } + }, + "params": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.InstanceAdditionalParamResV1" + } + } + } + }, "v1.DatabaseObject": { "type": "object", "properties": { @@ -13919,6 +13962,25 @@ } } }, + "v1.GetDatabaseDriverOptionsResV1": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "example": 0 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.DatabaseDriverOptionsV1" + } + }, + "message": { + "type": "string", + "example": "ok" + } + } + }, "v1.GetDepBetweenStageInstanceResV1": { "type": "object", "properties": { diff --git a/sqle/docs/swagger.yaml b/sqle/docs/swagger.yaml index d01b64985..1338ff5b8 100644 --- a/sqle/docs/swagger.yaml +++ b/sqle/docs/swagger.yaml @@ -1173,6 +1173,19 @@ definitions: $ref: '#/definitions/v1.ObjectDiffResult' type: array type: object + v1.DatabaseDriverOptionsV1: + properties: + db_type: + type: string + logo: + items: + type: integer + type: array + params: + items: + $ref: '#/definitions/v1.InstanceAdditionalParamResV1' + type: array + type: object v1.DatabaseObject: properties: object_name: @@ -1792,6 +1805,19 @@ definitions: $ref: '#/definitions/v1.DatabaseComparisonObject' type: object type: object + v1.GetDatabaseDriverOptionsResV1: + properties: + code: + example: 0 + type: integer + data: + items: + $ref: '#/definitions/v1.DatabaseDriverOptionsV1' + type: array + message: + example: ok + type: string + type: object v1.GetDepBetweenStageInstanceResV1: properties: code: @@ -7031,6 +7057,20 @@ paths: summary: 获取全局工单统计数据 tags: - workflow + /v1/database_driver_options: + get: + description: get database driver options + operationId: getDatabaseDriverOptions + responses: + "200": + description: OK + schema: + $ref: '#/definitions/v1.GetDatabaseDriverOptionsResV1' + security: + - ApiKeyAuth: [] + summary: 获取实例的额外属性列表 + tags: + - instance /v1/import_rule_template: get: description: get rule template file