fix: 上传备份文件名限制

This commit is contained in:
ssongliu
2023-03-08 15:33:43 +08:00
committed by ssongliu
parent bb104bb734
commit e1992de7af
11 changed files with 218 additions and 30 deletions

View File

@@ -3857,6 +3857,48 @@ var doc = `{
}
}
},
"/files/check": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "检测文件是否存在",
"consumes": [
"application/json"
],
"tags": [
"File"
],
"summary": "Check file exist",
"parameters": [
{
"description": "request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.FilePathCheck"
}
}
],
"responses": {
"200": {
"description": ""
}
},
"x-panel-log": {
"BeforeFuntions": [],
"bodyKeys": [
"path"
],
"formatEN": "Check whether file [path] exists",
"formatZH": "检测文件 [path] 是否存在",
"paramKeys": []
}
}
},
"/files/compress": {
"post": {
"security": [
@@ -9603,10 +9645,6 @@ var doc = `{
},
"dto.Login": {
"type": "object",
"required": [
"name",
"password"
],
"properties": {
"authMethod": {
"type": "string"
@@ -9627,11 +9665,6 @@ var doc = `{
},
"dto.MFALogin": {
"type": "object",
"required": [
"name",
"password",
"secret"
],
"properties": {
"authMethod": {
"type": "string"
@@ -10959,6 +10992,9 @@ var doc = `{
"deleteBackup": {
"type": "boolean"
},
"deleteDB": {
"type": "boolean"
},
"detailId": {
"type": "integer"
},
@@ -11159,11 +11195,15 @@ var doc = `{
"request.FileDownload": {
"type": "object",
"required": [
"compress",
"name",
"paths",
"type"
],
"properties": {
"compress": {
"type": "boolean"
},
"name": {
"type": "string"
},
@@ -11244,6 +11284,17 @@ var doc = `{
}
}
},
"request.FilePathCheck": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string"
}
}
},
"request.FileRename": {
"type": "object",
"required": [