feat: 增加回收站开关功能 (#3161)

Refs https://github.com/1Panel-dev/1Panel/issues/2895
This commit is contained in:
zhengkunwang
2023-12-04 06:56:09 +00:00
committed by GitHub
parent 9658ebdfdb
commit d60338f350
16 changed files with 184 additions and 13 deletions
+36 -2
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"
@@ -5919,6 +5919,28 @@ const docTemplate = `{
}
}
},
"/files/recycle/status": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "获取回收站状态",
"consumes": [
"application/json"
],
"tags": [
"File"
],
"summary": "Get RecycleBin status",
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/files/rename": {
"post": {
"security": [
@@ -13506,6 +13528,9 @@ const docTemplate = `{
"names"
],
"properties": {
"force": {
"type": "boolean"
},
"names": {
"type": "array",
"items": {
@@ -16822,6 +16847,9 @@ const docTemplate = `{
"expirationTime": {
"type": "string"
},
"fileRecycleBin": {
"type": "string"
},
"ipv6": {
"type": "string"
},
@@ -19035,6 +19063,9 @@ const docTemplate = `{
"autoRenew": {
"type": "boolean"
},
"description": {
"type": "string"
},
"dir": {
"type": "string"
},
@@ -19652,6 +19683,9 @@ const docTemplate = `{
"certificatePath": {
"type": "string"
},
"description": {
"type": "string"
},
"privateKey": {
"type": "string"
},