PUT /admin/compliance/penetration-test-reports/{id}
更新渗透测试报告的信息
合规管理 - 渗透测试 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
report ID |
Request Body
Schema: dto.UpdatePenTestReportRequest
| Field | Type | Required | Example | Constraints | Description |
conducted_at |
string |
No |
2026-04-01T00:00:00Z |
|
|
findings |
integer |
No |
5 |
|
|
next_test_date |
string |
No |
2026-07-01T00:00:00Z |
|
|
severity |
string |
No |
medium |
|
|
summary |
string |
No |
安全评估总结 |
|
|
title |
string |
No |
2026年Q1渗透测试报告 |
|
|
Referenced Schemas
dto.ErrorResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
400 |
|
|
message |
string |
No |
invalid request |
|
|
dto.PenTestReportItem
安全渗透测试报告
| Field | Type | Required | Example | Constraints | Description |
findings |
integer |
No |
5 |
|
发现问题数 |
next_test_date |
string |
No |
2026-07-01T00:00:00Z |
|
下次测试 |
report_id |
string |
No |
pentest_2026q1 |
|
报告ID |
severity |
string |
No |
medium |
|
严重级别 |
tested_at |
string |
No |
2026-04-01T00:00:00Z |
|
测试时间 |
title |
string |
No |
2026年Q1渗透测试报告 |
|
标题 |
dto.PenTestReportItemResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.PenTestReportItem |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|