/admin/wallets/{wallet_id}/integrity
验证指定钱包的事件哈希链完整性,检测篡改或数据损坏
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|---|---|
wallet_id |
path |
string |
是 | 钱包ID |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 完整性验证结果 | dto.DataResponse-domain_WalletIntegrityResult |
| 400 | 请求参数错误 | service-core/base/dto.SimpleResponse |
| 401 | 未认证或令牌无效 | service-core/base/dto.SimpleResponse |
| 500 | 服务内部错误 | service-core/base/dto.SimpleResponse |
引用的 Schema
domain.WalletIntegrityResult
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
broken_at |
integer |
否 | |||
last_hash |
string |
否 | |||
total |
integer |
否 | |||
valid |
boolean |
否 | |||
wallet_id |
string |
否 |
dto.DataResponse-domain_WalletIntegrityResult
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
data |
domain.WalletIntegrityResult |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |