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"
},
+34
View File
@@ -5912,6 +5912,28 @@
}
}
},
"/files/recycle/status": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "获取回收站状态",
"consumes": [
"application/json"
],
"tags": [
"File"
],
"summary": "Get RecycleBin status",
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/files/rename": {
"post": {
"security": [
@@ -13499,6 +13521,9 @@
"names"
],
"properties": {
"force": {
"type": "boolean"
},
"names": {
"type": "array",
"items": {
@@ -16815,6 +16840,9 @@
"expirationTime": {
"type": "string"
},
"fileRecycleBin": {
"type": "string"
},
"ipv6": {
"type": "string"
},
@@ -19028,6 +19056,9 @@
"autoRenew": {
"type": "boolean"
},
"description": {
"type": "string"
},
"dir": {
"type": "string"
},
@@ -19645,6 +19676,9 @@
"certificatePath": {
"type": "string"
},
"description": {
"type": "string"
},
"privateKey": {
"type": "string"
},
+21
View File
@@ -95,6 +95,8 @@ definitions:
type: object
dto.BatchDelete:
properties:
force:
type: boolean
names:
items:
type: string
@@ -2334,6 +2336,8 @@ definitions:
type: string
expirationTime:
type: string
fileRecycleBin:
type: string
ipv6:
type: string
language:
@@ -3808,6 +3812,8 @@ definitions:
properties:
autoRenew:
type: boolean
description:
type: string
dir:
type: string
domains:
@@ -4227,6 +4233,8 @@ definitions:
type: string
certificatePath:
type: string
description:
type: string
privateKey:
type: string
privateKeyPath:
@@ -8522,6 +8530,19 @@ paths:
summary: List RecycleBin files
tags:
- File
/files/recycle/status:
get:
consumes:
- application/json
description: 获取回收站状态
responses:
"200":
description: OK
security:
- ApiKeyAuth: []
summary: Get RecycleBin status
tags:
- File
/files/rename:
post:
consumes: