mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 14:57:16 +08:00
fix(文件管理): 一堆小问题
This commit is contained in:
29
docs/docs.go
29
docs/docs.go
@@ -1258,7 +1258,7 @@ const docTemplate = `{
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/requests.Exist"
|
||||
"$ref": "#/definitions/requests.Save"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1373,21 +1373,19 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "上传文件",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "request",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/requests.NotExist"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"description": "file",
|
||||
"name": "file",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "path",
|
||||
"name": "path",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -3071,6 +3069,17 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"requests.Save": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
"path": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"requests.SaveConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -1251,7 +1251,7 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/requests.Exist"
|
||||
"$ref": "#/definitions/requests.Save"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1366,21 +1366,19 @@
|
||||
],
|
||||
"summary": "上传文件",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "request",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/requests.NotExist"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"description": "file",
|
||||
"name": "file",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "path",
|
||||
"name": "path",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -3064,6 +3062,17 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"requests.Save": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
"path": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"requests.SaveConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -380,6 +380,13 @@ definitions:
|
||||
id:
|
||||
type: integer
|
||||
type: object
|
||||
requests.Save:
|
||||
properties:
|
||||
content:
|
||||
type: string
|
||||
path:
|
||||
type: string
|
||||
type: object
|
||||
requests.SaveConfig:
|
||||
properties:
|
||||
domains:
|
||||
@@ -1230,7 +1237,7 @@ paths:
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/requests.Exist'
|
||||
$ref: '#/definitions/requests.Save'
|
||||
- description: content
|
||||
in: body
|
||||
name: content
|
||||
@@ -1301,17 +1308,16 @@ paths:
|
||||
- application/json
|
||||
description: 上传文件到给定路径
|
||||
parameters:
|
||||
- description: request
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/requests.NotExist'
|
||||
- description: file
|
||||
in: formData
|
||||
name: file
|
||||
required: true
|
||||
type: file
|
||||
- description: path
|
||||
in: formData
|
||||
name: path
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
|
||||
Reference in New Issue
Block a user