mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
feat: 取消检测文件是否存在接口的日志打印 (#2878)
This commit is contained in:
parent
21f9e4f201
commit
24098e397f
@ -340,7 +340,6 @@ func (b *BaseApi) UploadFiles(c *gin.Context) {
|
|||||||
// @Success 200
|
// @Success 200
|
||||||
// @Security ApiKeyAuth
|
// @Security ApiKeyAuth
|
||||||
// @Router /files/check [post]
|
// @Router /files/check [post]
|
||||||
// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"检测文件 [path] 是否存在","formatEN":"Check whether file [path] exists"}
|
|
||||||
func (b *BaseApi) CheckFile(c *gin.Context) {
|
func (b *BaseApi) CheckFile(c *gin.Context) {
|
||||||
var req request.FilePathCheck
|
var req request.FilePathCheck
|
||||||
if err := helper.CheckBindAndValidate(&req, c); err != nil {
|
if err := helper.CheckBindAndValidate(&req, c); err != nil {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by swaggo/swag. DO NOT EDIT.
|
// Package docs GENERATED BY SWAG; DO NOT EDIT
|
||||||
|
// This file was generated by swaggo/swag
|
||||||
package docs
|
package docs
|
||||||
|
|
||||||
import "github.com/swaggo/swag"
|
import "github.com/swaggo/swag"
|
||||||
@ -5160,15 +5160,6 @@ const docTemplate = `{
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "OK"
|
"description": "OK"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"x-panel-log": {
|
|
||||||
"BeforeFunctions": [],
|
|
||||||
"bodyKeys": [
|
|
||||||
"path"
|
|
||||||
],
|
|
||||||
"formatEN": "Check whether file [path] exists",
|
|
||||||
"formatZH": "检测文件 [path] 是否存在",
|
|
||||||
"paramKeys": []
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -17373,11 +17364,17 @@ const docTemplate = `{
|
|||||||
"request.NginxConfigUpdate": {
|
"request.NginxConfigUpdate": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
|
"operate",
|
||||||
"websiteId"
|
"websiteId"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"operate": {
|
"operate": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"add",
|
||||||
|
"update",
|
||||||
|
"delete"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"params": {},
|
"params": {},
|
||||||
"scope": {
|
"scope": {
|
||||||
@ -18195,8 +18192,6 @@ const docTemplate = `{
|
|||||||
"request.WebsiteProxyConfig": {
|
"request.WebsiteProxyConfig": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"cacheTime",
|
|
||||||
"cacheUnit",
|
|
||||||
"id",
|
"id",
|
||||||
"match",
|
"match",
|
||||||
"modifier",
|
"modifier",
|
||||||
|
@ -5153,15 +5153,6 @@
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "OK"
|
"description": "OK"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"x-panel-log": {
|
|
||||||
"BeforeFunctions": [],
|
|
||||||
"bodyKeys": [
|
|
||||||
"path"
|
|
||||||
],
|
|
||||||
"formatEN": "Check whether file [path] exists",
|
|
||||||
"formatZH": "检测文件 [path] 是否存在",
|
|
||||||
"paramKeys": []
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -17366,11 +17357,17 @@
|
|||||||
"request.NginxConfigUpdate": {
|
"request.NginxConfigUpdate": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
|
"operate",
|
||||||
"websiteId"
|
"websiteId"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"operate": {
|
"operate": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"add",
|
||||||
|
"update",
|
||||||
|
"delete"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"params": {},
|
"params": {},
|
||||||
"scope": {
|
"scope": {
|
||||||
@ -18188,8 +18185,6 @@
|
|||||||
"request.WebsiteProxyConfig": {
|
"request.WebsiteProxyConfig": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"cacheTime",
|
|
||||||
"cacheUnit",
|
|
||||||
"id",
|
"id",
|
||||||
"match",
|
"match",
|
||||||
"modifier",
|
"modifier",
|
||||||
|
@ -3229,6 +3229,10 @@ definitions:
|
|||||||
request.NginxConfigUpdate:
|
request.NginxConfigUpdate:
|
||||||
properties:
|
properties:
|
||||||
operate:
|
operate:
|
||||||
|
enum:
|
||||||
|
- add
|
||||||
|
- update
|
||||||
|
- delete
|
||||||
type: string
|
type: string
|
||||||
params: {}
|
params: {}
|
||||||
scope:
|
scope:
|
||||||
@ -3236,6 +3240,7 @@ definitions:
|
|||||||
websiteId:
|
websiteId:
|
||||||
type: integer
|
type: integer
|
||||||
required:
|
required:
|
||||||
|
- operate
|
||||||
- websiteId
|
- websiteId
|
||||||
type: object
|
type: object
|
||||||
request.NginxProxyUpdate:
|
request.NginxProxyUpdate:
|
||||||
@ -3810,8 +3815,6 @@ definitions:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- cacheTime
|
|
||||||
- cacheUnit
|
|
||||||
- id
|
- id
|
||||||
- match
|
- match
|
||||||
- modifier
|
- modifier
|
||||||
@ -7659,13 +7662,6 @@ paths:
|
|||||||
summary: Check file exist
|
summary: Check file exist
|
||||||
tags:
|
tags:
|
||||||
- File
|
- File
|
||||||
x-panel-log:
|
|
||||||
BeforeFunctions: []
|
|
||||||
bodyKeys:
|
|
||||||
- path
|
|
||||||
formatEN: Check whether file [path] exists
|
|
||||||
formatZH: 检测文件 [path] 是否存在
|
|
||||||
paramKeys: []
|
|
||||||
/files/chunkdownload:
|
/files/chunkdownload:
|
||||||
post:
|
post:
|
||||||
consumes:
|
consumes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user