Skip to content

Commit

Permalink
gen swagger: database driver options modify
Browse files Browse the repository at this point in the history
  • Loading branch information
iwanghc committed Dec 27, 2024
1 parent cc48930 commit 7c32127
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 3 deletions.
61 changes: 60 additions & 1 deletion sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -13056,7 +13088,7 @@ var doc = `{
}
}
},
"v1.DatabaseDriverOptionsV1": {
"v1.DatabaseDriverLogosV1": {
"type": "object",
"properties": {
"db_type": {
Expand All @@ -13067,6 +13099,14 @@ var doc = `{
"items": {
"type": "integer"
}
}
}
},
"v1.DatabaseDriverOptionsV1": {
"type": "object",
"properties": {
"db_type": {
"type": "string"
},
"params": {
"type": "array",
Expand Down Expand Up @@ -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": {
Expand Down
61 changes: 60 additions & 1 deletion sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -13040,7 +13072,7 @@
}
}
},
"v1.DatabaseDriverOptionsV1": {
"v1.DatabaseDriverLogosV1": {
"type": "object",
"properties": {
"db_type": {
Expand All @@ -13051,6 +13083,14 @@
"items": {
"type": "integer"
}
}
}
},
"v1.DatabaseDriverOptionsV1": {
"type": "object",
"properties": {
"db_type": {
"type": "string"
},
"params": {
"type": "array",
Expand Down Expand Up @@ -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": {
Expand Down
40 changes: 39 additions & 1 deletion sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1173,14 +1173,19 @@ definitions:
$ref: '#/definitions/v1.ObjectDiffResult'
type: array
type: object
v1.DatabaseDriverOptionsV1:
v1.DatabaseDriverLogosV1:
properties:
db_type:
type: string
logo:
items:
type: integer
type: array
type: object
v1.DatabaseDriverOptionsV1:
properties:
db_type:
type: string
params:
items:
$ref: '#/definitions/v1.InstanceAdditionalParamResV1'
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7c32127

Please sign in to comment.