fix: 补全 swagger 文档 (#1022)

This commit is contained in:
ssongliu
2023-05-12 22:30:50 +08:00
committed by GitHub
parent 46e13d754f
commit afa9eecf35
4 changed files with 122 additions and 8 deletions

View File

@@ -5377,7 +5377,7 @@ var doc = `{
}
}
},
"/hosts/firewall/ip": {
"/hosts/firewall/batch": {
"post": {
"security": [
{
@@ -5410,6 +5410,49 @@ var doc = `{
}
}
},
"/hosts/firewall/ip": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "创建防火墙 IP 规则",
"consumes": [
"application/json"
],
"tags": [
"Firewall"
],
"summary": "Create group",
"parameters": [
{
"description": "request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.AddrRuleOperate"
}
}
],
"responses": {
"200": {
"description": ""
}
},
"x-panel-log": {
"BeforeFuntions": [],
"bodyKeys": [
"strategy",
"address"
],
"formatEN": "create address rules [strategy][address]",
"formatZH": "添加 ip 规则 [strategy] [address]",
"paramKeys": []
}
}
},
"/hosts/firewall/operate": {
"post": {
"security": [
@@ -5534,7 +5577,7 @@ var doc = `{
}
}
},
"/hosts/firewall/update/ip": {
"/hosts/firewall/update/addr": {
"post": {
"security": [
{