/admin/tenants/{tenant_id}/data-classification
查询指定租户的数据分类分级配置,用于数据安全治理与合规审计
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|---|---|
tenant_id |
path |
string |
是 | 租户ID |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 数据分类分级信息 | service-tenant/internal/handler/dto.DataClassificationDetailResponse |
| 400 | 请求参数错误 | service-core/base/dto.SimpleResponse |
| 401 | 未认证 | service-core/base/dto.SimpleResponse |
| 403 | 权限不足 | service-core/base/dto.SimpleResponse |
| 404 | 资源未找到 | service-core/base/dto.SimpleResponse |
| 500 | 服务器内部错误 | service-core/base/dto.SimpleResponse |
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-tenant/internal/handler/dto.DataClassification
数据分类项
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
color |
string |
否 | #FF0000 |
颜色 | |
description |
string |
否 | 机密数据 |
描述 | |
label |
string |
否 | 机密 |
标签 | |
level |
string |
否 | confidential |
级别 |
service-tenant/internal/handler/dto.DataClassificationDetailResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
data |
service-tenant/internal/handler/dto.DataClassificationResponse |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-tenant/internal/handler/dto.DataClassificationResponse
租户数据分类分级配置
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
classifications |
array of |
否 | 分类列表 | ||
tenant_id |
string |
否 | tnt_abc123 |
租户ID | |
updated_at |
string |
否 | 2026-04-10T14:20:00Z |
更新时间 |