Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion backend/app/api/v1/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
23 changes: 9 additions & 14 deletions cmd/server/docs/docs.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -5160,15 +5160,6 @@ const docTemplate = `{
"200": {
"description": "OK"
}
},
"x-panel-log": {
"BeforeFunctions": [],
"bodyKeys": [
"path"
],
"formatEN": "Check whether file [path] exists",
"formatZH": "检测文件 [path] 是否存在",
"paramKeys": []
}
}
},
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -18195,8 +18192,6 @@ const docTemplate = `{
"request.WebsiteProxyConfig": {
"type": "object",
"required": [
"cacheTime",
"cacheUnit",
"id",
"match",
"modifier",
Expand Down
19 changes: 7 additions & 12 deletions cmd/server/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -5153,15 +5153,6 @@
"200": {
"description": "OK"
}
},
"x-panel-log": {
"BeforeFunctions": [],
"bodyKeys": [
"path"
],
"formatEN": "Check whether file [path] exists",
"formatZH": "检测文件 [path] 是否存在",
"paramKeys": []
}
}
},
Expand Down Expand Up @@ -17366,11 +17357,17 @@
"request.NginxConfigUpdate": {
"type": "object",
"required": [
"operate",
"websiteId"
],
"properties": {
"operate": {
"type": "string"
"type": "string",
"enum": [
"add",
"update",
"delete"
]
},
"params": {},
"scope": {
Expand Down Expand Up @@ -18188,8 +18185,6 @@
"request.WebsiteProxyConfig": {
"type": "object",
"required": [
"cacheTime",
"cacheUnit",
"id",
"match",
"modifier",
Expand Down
14 changes: 5 additions & 9 deletions cmd/server/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3229,13 +3229,18 @@ definitions:
request.NginxConfigUpdate:
properties:
operate:
enum:
- add
- update
- delete
type: string
params: {}
scope:
$ref: '#/definitions/dto.NginxKey'
websiteId:
type: integer
required:
- operate
- websiteId
type: object
request.NginxProxyUpdate:
Expand Down Expand Up @@ -3810,8 +3815,6 @@ definitions:
type: string
type: object
required:
- cacheTime
- cacheUnit
- id
- match
- modifier
Expand Down Expand Up @@ -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:
Expand Down
Loading