mirror of
https://github.com/acepanel/panel.git
synced 2026-02-06 14:47:18 +08:00
feat: Rsync 插件
This commit is contained in:
131
docs/docs.go
131
docs/docs.go
@@ -1295,7 +1295,7 @@ const docTemplate = `{
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/panel_app_http_requests_website.Add"
|
||||
"$ref": "#/definitions/requests.Add"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -1696,40 +1696,6 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
"BearerToken": []
|
||||
}
|
||||
],
|
||||
"description": "更新 Rsync 模块",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"插件-Rsync"
|
||||
],
|
||||
"summary": "更新模块",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "request",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/panel_app_http_requests_plugins_rsync.Update"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controllers.SuccessResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
@@ -1751,7 +1717,50 @@ const docTemplate = `{
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/panel_app_http_requests_plugins_rsync.Add"
|
||||
"$ref": "#/definitions/requests.Create"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controllers.SuccessResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/plugins/rsync/modules/{name}": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"BearerToken": []
|
||||
}
|
||||
],
|
||||
"description": "更新 Rsync 模块",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"插件-Rsync"
|
||||
],
|
||||
"summary": "更新模块",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "模块名称",
|
||||
"name": "name",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "request",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/panel_app_http_requests_plugins_rsync.Update"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -1783,7 +1792,7 @@ const docTemplate = `{
|
||||
"type": "string",
|
||||
"description": "模块名称",
|
||||
"name": "name",
|
||||
"in": "query",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
@@ -2141,29 +2150,6 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"panel_app_http_requests_plugins_rsync.Add": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"auth_user": {
|
||||
"type": "string"
|
||||
},
|
||||
"comment": {
|
||||
"type": "string"
|
||||
},
|
||||
"hosts_allow": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"path": {
|
||||
"type": "string"
|
||||
},
|
||||
"secret": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"panel_app_http_requests_plugins_rsync.Update": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -2216,7 +2202,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"panel_app_http_requests_website.Add": {
|
||||
"requests.Add": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"db": {
|
||||
@@ -2312,6 +2298,29 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"requests.Create": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"auth_user": {
|
||||
"type": "string"
|
||||
},
|
||||
"comment": {
|
||||
"type": "string"
|
||||
},
|
||||
"hosts_allow": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"path": {
|
||||
"type": "string"
|
||||
},
|
||||
"secret": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"requests.DNSStore": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -1288,7 +1288,7 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/panel_app_http_requests_website.Add"
|
||||
"$ref": "#/definitions/requests.Add"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -1689,40 +1689,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
"BearerToken": []
|
||||
}
|
||||
],
|
||||
"description": "更新 Rsync 模块",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"插件-Rsync"
|
||||
],
|
||||
"summary": "更新模块",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "request",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/panel_app_http_requests_plugins_rsync.Update"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controllers.SuccessResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
@@ -1744,7 +1710,50 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/panel_app_http_requests_plugins_rsync.Add"
|
||||
"$ref": "#/definitions/requests.Create"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controllers.SuccessResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/plugins/rsync/modules/{name}": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"BearerToken": []
|
||||
}
|
||||
],
|
||||
"description": "更新 Rsync 模块",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"插件-Rsync"
|
||||
],
|
||||
"summary": "更新模块",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "模块名称",
|
||||
"name": "name",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "request",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/panel_app_http_requests_plugins_rsync.Update"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -1776,7 +1785,7 @@
|
||||
"type": "string",
|
||||
"description": "模块名称",
|
||||
"name": "name",
|
||||
"in": "query",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
@@ -2134,29 +2143,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"panel_app_http_requests_plugins_rsync.Add": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"auth_user": {
|
||||
"type": "string"
|
||||
},
|
||||
"comment": {
|
||||
"type": "string"
|
||||
},
|
||||
"hosts_allow": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"path": {
|
||||
"type": "string"
|
||||
},
|
||||
"secret": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"panel_app_http_requests_plugins_rsync.Update": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -2209,7 +2195,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"panel_app_http_requests_website.Add": {
|
||||
"requests.Add": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"db": {
|
||||
@@ -2305,6 +2291,29 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"requests.Create": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"auth_user": {
|
||||
"type": "string"
|
||||
},
|
||||
"comment": {
|
||||
"type": "string"
|
||||
},
|
||||
"hosts_allow": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"path": {
|
||||
"type": "string"
|
||||
},
|
||||
"secret": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"requests.DNSStore": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -151,21 +151,6 @@ definitions:
|
||||
updated_at:
|
||||
type: string
|
||||
type: object
|
||||
panel_app_http_requests_plugins_rsync.Add:
|
||||
properties:
|
||||
auth_user:
|
||||
type: string
|
||||
comment:
|
||||
type: string
|
||||
hosts_allow:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
path:
|
||||
type: string
|
||||
secret:
|
||||
type: string
|
||||
type: object
|
||||
panel_app_http_requests_plugins_rsync.Update:
|
||||
properties:
|
||||
auth_user:
|
||||
@@ -200,7 +185,7 @@ definitions:
|
||||
website_path:
|
||||
type: string
|
||||
type: object
|
||||
panel_app_http_requests_website.Add:
|
||||
requests.Add:
|
||||
properties:
|
||||
db:
|
||||
type: boolean
|
||||
@@ -263,6 +248,21 @@ definitions:
|
||||
website_id:
|
||||
type: integer
|
||||
type: object
|
||||
requests.Create:
|
||||
properties:
|
||||
auth_user:
|
||||
type: string
|
||||
comment:
|
||||
type: string
|
||||
hosts_allow:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
path:
|
||||
type: string
|
||||
secret:
|
||||
type: string
|
||||
type: object
|
||||
requests.DNSStore:
|
||||
properties:
|
||||
data:
|
||||
@@ -1243,7 +1243,7 @@ paths:
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/panel_app_http_requests_website.Add'
|
||||
$ref: '#/definitions/requests.Add'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
@@ -1474,26 +1474,6 @@ paths:
|
||||
tags:
|
||||
- 网站管理
|
||||
/plugins/rsync/modules:
|
||||
delete:
|
||||
description: 删除 Rsync 模块
|
||||
parameters:
|
||||
- description: 模块名称
|
||||
in: query
|
||||
name: name
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/controllers.SuccessResponse'
|
||||
security:
|
||||
- BearerToken: []
|
||||
summary: 删除模块
|
||||
tags:
|
||||
- 插件-Rsync
|
||||
get:
|
||||
description: 列出所有 Rsync 模块
|
||||
parameters:
|
||||
@@ -1523,7 +1503,7 @@ paths:
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/panel_app_http_requests_plugins_rsync.Add'
|
||||
$ref: '#/definitions/requests.Create'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
@@ -1536,9 +1516,35 @@ paths:
|
||||
summary: 添加模块
|
||||
tags:
|
||||
- 插件-Rsync
|
||||
put:
|
||||
/plugins/rsync/modules/{name}:
|
||||
delete:
|
||||
description: 删除 Rsync 模块
|
||||
parameters:
|
||||
- description: 模块名称
|
||||
in: path
|
||||
name: name
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/controllers.SuccessResponse'
|
||||
security:
|
||||
- BearerToken: []
|
||||
summary: 删除模块
|
||||
tags:
|
||||
- 插件-Rsync
|
||||
post:
|
||||
description: 更新 Rsync 模块
|
||||
parameters:
|
||||
- description: 模块名称
|
||||
in: path
|
||||
name: name
|
||||
required: true
|
||||
type: string
|
||||
- description: request
|
||||
in: body
|
||||
name: data
|
||||
|
||||
Reference in New Issue
Block a user