feat: 取消检测文件是否存在接口的日志打印 (#2878)

This commit is contained in:
zhengkunwang 2023-11-10 14:36:07 +08:00 committed by GitHub
parent 21f9e4f201
commit 24098e397f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 36 deletions

View File

@ -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 {

View File

@ -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",

View File

@ -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",

View File

@ -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: