feat: 工具箱病毒扫描支持定时扫描 (#5847)

This commit is contained in:
ssongliu
2024-07-17 16:55:28 +08:00
committed by GitHub
parent ca0c96cb12
commit 3c0dc7459c
22 changed files with 747 additions and 26 deletions

View File

@@ -11500,6 +11500,58 @@ const docTemplate = `{
}
}
},
"/toolbox/clam/status/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "修改扫描规则状态",
"consumes": [
"application/json"
],
"tags": [
"Clam"
],
"summary": "Update clam status",
"parameters": [
{
"description": "request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.ClamUpdateStatus"
}
}
],
"responses": {
"200": {
"description": "OK"
}
},
"x-panel-log": {
"BeforeFunctions": [
{
"db": "clams",
"input_column": "id",
"input_value": "id",
"isList": false,
"output_column": "name",
"output_value": "name"
}
],
"bodyKeys": [
"id",
"status"
],
"formatEN": "change the status of clam [name] to [status].",
"formatZH": "修改扫描规则 [name] 状态为 [status]",
"paramKeys": []
}
}
},
"/toolbox/clam/update": {
"post": {
"security": [
@@ -15570,6 +15622,12 @@ const docTemplate = `{
},
"path": {
"type": "string"
},
"spec": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
@@ -15665,6 +15723,20 @@ const docTemplate = `{
},
"path": {
"type": "string"
},
"spec": {
"type": "string"
}
}
},
"dto.ClamUpdateStatus": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"status": {
"type": "string"
}
}
},
@@ -18468,7 +18540,7 @@ const docTemplate = `{
"type": "string",
"enum": [
"name",
"status",
"state",
"created_at"
]
},
@@ -22601,7 +22673,8 @@ const docTemplate = `{
"primary_domain",
"type",
"status",
"created_at"
"created_at",
"expire_date"
]
},
"page": {
@@ -22619,8 +22692,7 @@ const docTemplate = `{
"type": "object",
"required": [
"id",
"primaryDomain",
"webSiteGroupID"
"primaryDomain"
],
"properties": {
"IPV6": {

View File

@@ -11493,6 +11493,58 @@
}
}
},
"/toolbox/clam/status/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "修改扫描规则状态",
"consumes": [
"application/json"
],
"tags": [
"Clam"
],
"summary": "Update clam status",
"parameters": [
{
"description": "request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.ClamUpdateStatus"
}
}
],
"responses": {
"200": {
"description": "OK"
}
},
"x-panel-log": {
"BeforeFunctions": [
{
"db": "clams",
"input_column": "id",
"input_value": "id",
"isList": false,
"output_column": "name",
"output_value": "name"
}
],
"bodyKeys": [
"id",
"status"
],
"formatEN": "change the status of clam [name] to [status].",
"formatZH": "修改扫描规则 [name] 状态为 [status]",
"paramKeys": []
}
}
},
"/toolbox/clam/update": {
"post": {
"security": [
@@ -15563,6 +15615,12 @@
},
"path": {
"type": "string"
},
"spec": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
@@ -15658,6 +15716,20 @@
},
"path": {
"type": "string"
},
"spec": {
"type": "string"
}
}
},
"dto.ClamUpdateStatus": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"status": {
"type": "string"
}
}
},
@@ -18461,7 +18533,7 @@
"type": "string",
"enum": [
"name",
"status",
"state",
"created_at"
]
},
@@ -22594,7 +22666,8 @@
"primary_domain",
"type",
"status",
"created_at"
"created_at",
"expire_date"
]
},
"page": {
@@ -22612,8 +22685,7 @@
"type": "object",
"required": [
"id",
"primaryDomain",
"webSiteGroupID"
"primaryDomain"
],
"properties": {
"IPV6": {

View File

@@ -243,6 +243,10 @@ definitions:
type: string
path:
type: string
spec:
type: string
status:
type: string
type: object
dto.ClamDelete:
properties:
@@ -305,6 +309,15 @@ definitions:
type: string
path:
type: string
spec:
type: string
type: object
dto.ClamUpdateStatus:
properties:
id:
type: integer
status:
type: string
type: object
dto.Clean:
properties:
@@ -2198,7 +2211,7 @@ definitions:
orderBy:
enum:
- name
- status
- state
- created_at
type: string
page:
@@ -4974,6 +4987,7 @@ definitions:
- type
- status
- created_at
- expire_date
type: string
page:
type: integer
@@ -5004,7 +5018,6 @@ definitions:
required:
- id
- primaryDomain
- webSiteGroupID
type: object
request.WebsiteUpdateDir:
properties:
@@ -12767,6 +12780,40 @@ paths:
summary: Page clam
tags:
- Clam
/toolbox/clam/status/update:
post:
consumes:
- application/json
description: 修改扫描规则状态
parameters:
- description: request
in: body
name: request
required: true
schema:
$ref: '#/definitions/dto.ClamUpdateStatus'
responses:
"200":
description: OK
security:
- ApiKeyAuth: []
summary: Update clam status
tags:
- Clam
x-panel-log:
BeforeFunctions:
- db: clams
input_column: id
input_value: id
isList: false
output_column: name
output_value: name
bodyKeys:
- id
- status
formatEN: change the status of clam [name] to [status].
formatZH: 修改扫描规则 [name] 状态为 [status]
paramKeys: []
/toolbox/clam/update:
post:
consumes: