feat(database): improve MySQL user authorization (#13326)

This commit is contained in:
ssongliu
2026-07-21 19:08:09 +08:00
committed by GitHub
parent af12526a6c
commit c77ddcfebe
48 changed files with 1233 additions and 318 deletions

View File

@@ -15248,6 +15248,52 @@
}
}
},
"/databases/users/password/save": {
"post": {
"consumes": [
"application/json"
],
"parameters": [
{
"description": "request",
"in": "body",
"name": "request",
"required": true,
"schema": {
"$ref": "#/definitions/dto.MysqlUserPassword"
}
}
],
"responses": {
"200": {
"description": "OK"
}
},
"security": [
{
"ApiKeyAuth": []
},
{
"Timestamp": []
}
],
"summary": "Save mysql user password locally",
"tags": [
"Database Mysql"
],
"x-panel-log": {
"BeforeFunctions": [],
"bodyKeys": [
"database",
"username",
"host"
],
"formatEN": "save mysql database [database] user [username]@[host] password locally",
"formatZH": "补充 mysql 数据库 [database] 用户 [username]@[host] 密码",
"paramKeys": []
}
}
},
"/databases/users/search": {
"post": {
"consumes": [
@@ -35243,6 +35289,9 @@
"ko": {
"type": "string"
},
"lo": {
"type": "string"
},
"ms": {
"type": "string"
},
@@ -35295,7 +35344,8 @@
"pt-BR",
"tr",
"es-ES",
"fa"
"fa",
"lo"
],
"type": "string"
},
@@ -36204,6 +36254,9 @@
"host": {
"type": "string"
},
"isDelete": {
"type": "boolean"
},
"password": {
"type": "string"
},