diff --git a/sqle/docs/docs.go b/sqle/docs/docs.go index 2313f7997..564abcca7 100644 --- a/sqle/docs/docs.go +++ b/sqle/docs/docs.go @@ -1271,6 +1271,38 @@ var doc = `{ } } }, + "/v1/database_driver_logos": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "get database driver logos", + "tags": [ + "instance" + ], + "summary": "获取数据库插件的Logo图片", + "operationId": "GetDatabaseDriverLogos", + "parameters": [ + { + "type": "string", + "description": "MySQL,Oracle", + "name": "db_types", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.GetDatabaseDriverLogosResV1" + } + } + } + } + }, "/v1/database_driver_options": { "get": { "security": [ @@ -13056,7 +13088,7 @@ var doc = `{ } } }, - "v1.DatabaseDriverOptionsV1": { + "v1.DatabaseDriverLogosV1": { "type": "object", "properties": { "db_type": { @@ -13067,6 +13099,14 @@ var doc = `{ "items": { "type": "integer" } + } + } + }, + "v1.DatabaseDriverOptionsV1": { + "type": "object", + "properties": { + "db_type": { + "type": "string" }, "params": { "type": "array", @@ -13978,6 +14018,25 @@ var doc = `{ } } }, + "v1.GetDatabaseDriverLogosResV1": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "example": 0 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.DatabaseDriverLogosV1" + } + }, + "message": { + "type": "string", + "example": "ok" + } + } + }, "v1.GetDatabaseDriverOptionsResV1": { "type": "object", "properties": { diff --git a/sqle/docs/swagger.json b/sqle/docs/swagger.json index e7cbb7dbb..dfc2ee463 100644 --- a/sqle/docs/swagger.json +++ b/sqle/docs/swagger.json @@ -1255,6 +1255,38 @@ } } }, + "/v1/database_driver_logos": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "get database driver logos", + "tags": [ + "instance" + ], + "summary": "获取数据库插件的Logo图片", + "operationId": "GetDatabaseDriverLogos", + "parameters": [ + { + "type": "string", + "description": "MySQL,Oracle", + "name": "db_types", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.GetDatabaseDriverLogosResV1" + } + } + } + } + }, "/v1/database_driver_options": { "get": { "security": [ @@ -13040,7 +13072,7 @@ } } }, - "v1.DatabaseDriverOptionsV1": { + "v1.DatabaseDriverLogosV1": { "type": "object", "properties": { "db_type": { @@ -13051,6 +13083,14 @@ "items": { "type": "integer" } + } + } + }, + "v1.DatabaseDriverOptionsV1": { + "type": "object", + "properties": { + "db_type": { + "type": "string" }, "params": { "type": "array", @@ -13962,6 +14002,25 @@ } } }, + "v1.GetDatabaseDriverLogosResV1": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "example": 0 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.DatabaseDriverLogosV1" + } + }, + "message": { + "type": "string", + "example": "ok" + } + } + }, "v1.GetDatabaseDriverOptionsResV1": { "type": "object", "properties": { diff --git a/sqle/docs/swagger.yaml b/sqle/docs/swagger.yaml index 1338ff5b8..b56d4625f 100644 --- a/sqle/docs/swagger.yaml +++ b/sqle/docs/swagger.yaml @@ -1173,7 +1173,7 @@ definitions: $ref: '#/definitions/v1.ObjectDiffResult' type: array type: object - v1.DatabaseDriverOptionsV1: + v1.DatabaseDriverLogosV1: properties: db_type: type: string @@ -1181,6 +1181,11 @@ definitions: items: type: integer type: array + type: object + v1.DatabaseDriverOptionsV1: + properties: + db_type: + type: string params: items: $ref: '#/definitions/v1.InstanceAdditionalParamResV1' @@ -1805,6 +1810,19 @@ definitions: $ref: '#/definitions/v1.DatabaseComparisonObject' type: object type: object + v1.GetDatabaseDriverLogosResV1: + properties: + code: + example: 0 + type: integer + data: + items: + $ref: '#/definitions/v1.DatabaseDriverLogosV1' + type: array + message: + example: ok + type: string + type: object v1.GetDatabaseDriverOptionsResV1: properties: code: @@ -7057,6 +7075,26 @@ paths: summary: 获取全局工单统计数据 tags: - workflow + /v1/database_driver_logos: + get: + description: get database driver logos + operationId: GetDatabaseDriverLogos + parameters: + - description: MySQL,Oracle + in: query + name: db_types + required: true + type: string + responses: + "200": + description: OK + schema: + $ref: '#/definitions/v1.GetDatabaseDriverLogosResV1' + security: + - ApiKeyAuth: [] + summary: 获取数据库插件的Logo图片 + tags: + - instance /v1/database_driver_options: get: description: get database driver options