mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/1Panel-dev/1Panel.git
synced 2026-09-20 08:03:55 +08:00
feat(database): improve MySQL user authorization (#13326)
This commit is contained in:
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user