mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-27 12:39:01 +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
|
||||
// @Security ApiKeyAuth
|
||||
// @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) {
|
||||
var req request.FilePathCheck
|
||||
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
|
||||
|
||||
import "github.com/swaggo/swag"
|
||||
@ -5160,15 +5160,6 @@ const docTemplate = `{
|
||||
"200": {
|
||||
"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": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"operate",
|
||||
"websiteId"
|
||||
],
|
||||
"properties": {
|
||||
"operate": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"add",
|
||||
"update",
|
||||
"delete"
|
||||
]
|
||||
},
|
||||
"params": {},
|
||||
"scope": {
|
||||
@ -18195,8 +18192,6 @@ const docTemplate = `{
|
||||
"request.WebsiteProxyConfig": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"cacheTime",
|
||||
"cacheUnit",
|
||||
"id",
|
||||
"match",
|
||||
"modifier",
|
||||
|
@ -5153,15 +5153,6 @@
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
},
|
||||
"x-panel-log": {
|
||||
"BeforeFunctions": [],
|
||||
"bodyKeys": [
|
||||
"path"
|
||||
],
|
||||
"formatEN": "Check whether file [path] exists",
|
||||
"formatZH": "检测文件 [path] 是否存在",
|
||||
"paramKeys": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -17366,11 +17357,17 @@
|
||||
"request.NginxConfigUpdate": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"operate",
|
||||
"websiteId"
|
||||
],
|
||||
"properties": {
|
||||
"operate": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"add",
|
||||
"update",
|
||||
"delete"
|
||||
]
|
||||
},
|
||||
"params": {},
|
||||
"scope": {
|
||||
@ -18188,8 +18185,6 @@
|
||||
"request.WebsiteProxyConfig": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"cacheTime",
|
||||
"cacheUnit",
|
||||
"id",
|
||||
"match",
|
||||
"modifier",
|
||||
|
@ -3229,6 +3229,10 @@ definitions:
|
||||
request.NginxConfigUpdate:
|
||||
properties:
|
||||
operate:
|
||||
enum:
|
||||
- add
|
||||
- update
|
||||
- delete
|
||||
type: string
|
||||
params: {}
|
||||
scope:
|
||||
@ -3236,6 +3240,7 @@ definitions:
|
||||
websiteId:
|
||||
type: integer
|
||||
required:
|
||||
- operate
|
||||
- websiteId
|
||||
type: object
|
||||
request.NginxProxyUpdate:
|
||||
@ -3810,8 +3815,6 @@ definitions:
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- cacheTime
|
||||
- cacheUnit
|
||||
- id
|
||||
- match
|
||||
- modifier
|
||||
@ -7659,13 +7662,6 @@ paths:
|
||||
summary: Check file exist
|
||||
tags:
|
||||
- File
|
||||
x-panel-log:
|
||||
BeforeFunctions: []
|
||||
bodyKeys:
|
||||
- path
|
||||
formatEN: Check whether file [path] exists
|
||||
formatZH: 检测文件 [path] 是否存在
|
||||
paramKeys: []
|
||||
/files/chunkdownload:
|
||||
post:
|
||||
consumes:
|
||||
|
Loading…
Reference in New Issue
Block a user