feat: PHP 网站增加版本切换 (#1748)
Refs https://github.com/1Panel-dev/1Panel/issues/1586 Refs https://github.com/1Panel-dev/1Panel/issues/1406 Refs https://github.com/1Panel-dev/1Panel/issues/974 Refs https://github.com/1Panel-dev/1Panel/issues/671
This commit is contained in:
@@ -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"
|
||||
@@ -10057,6 +10057,57 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/websites/php/version": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "变更 php 版本",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Website PHP"
|
||||
],
|
||||
"summary": "Update php version",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "request",
|
||||
"name": "request",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/request.WebsitePHPVersionReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
},
|
||||
"x-panel-log": {
|
||||
"BeforeFuntions": [
|
||||
{
|
||||
"db": "websites",
|
||||
"input_column": "id",
|
||||
"input_value": "websiteId",
|
||||
"isList": false,
|
||||
"output_column": "primary_domain",
|
||||
"output_value": "domain"
|
||||
}
|
||||
],
|
||||
"bodyKeys": [
|
||||
"websiteId"
|
||||
],
|
||||
"formatEN": "php version update [domain]",
|
||||
"formatZH": "php 版本变更 [domain]",
|
||||
"paramKeys": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"/websites/proxies": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -10206,7 +10257,7 @@ const docTemplate = `{
|
||||
"tags": [
|
||||
"Website"
|
||||
],
|
||||
"summary": "Get proxy conf",
|
||||
"summary": "Get redirect conf",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "request",
|
||||
@@ -15587,6 +15638,25 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.WebsitePHPVersionReq": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"retainConfig",
|
||||
"runtimeID",
|
||||
"websiteID"
|
||||
],
|
||||
"properties": {
|
||||
"retainConfig": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"runtimeID": {
|
||||
"type": "integer"
|
||||
},
|
||||
"websiteID": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.WebsiteProxyConfig": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
Reference in New Issue
Block a user