diff --git a/backend/app/api/v1/file.go b/backend/app/api/v1/file.go index bae992ca1..339a48854 100644 --- a/backend/app/api/v1/file.go +++ b/backend/app/api/v1/file.go @@ -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 { diff --git a/cmd/server/docs/docs.go b/cmd/server/docs/docs.go index 669684aad..095802c53 100644 --- a/cmd/server/docs/docs.go +++ b/cmd/server/docs/docs.go @@ -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", diff --git a/cmd/server/docs/swagger.json b/cmd/server/docs/swagger.json index 52d0d4a4e..bb4421d08 100644 --- a/cmd/server/docs/swagger.json +++ b/cmd/server/docs/swagger.json @@ -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", diff --git a/cmd/server/docs/swagger.yaml b/cmd/server/docs/swagger.yaml index c93e7dfaa..d81aa442a 100644 --- a/cmd/server/docs/swagger.yaml +++ b/cmd/server/docs/swagger.yaml @@ -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: