/admin/billing/feature-gates
根据当前租户订阅的套餐返回已启用的 FeatureGates(功能开关)列表,用于前端根据功能开关渲染 UI。两层判定:套餐权益 + 租户覆盖。
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 功能开关列表查询成功 | handler.featureGateResponse |
| 400 | 请求参数错误 | dto.SimpleResponse |
| 401 | 未授权 | dto.SimpleResponse |
| 403 | 无权限 | dto.SimpleResponse |
| 500 | 服务器内部错误 | dto.SimpleResponse |
引用的 Schema
billing.FeatureGate
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
description |
string |
否 | 功能描述 | ||
enabled |
boolean |
否 | 当前租户是否启用 | ||
key |
string |
否 | "nhi", "mfa", "sso", "audit_export" | ||
name |
string |
否 | "Non-Human Identities" (展示名) |
dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
handler.featureGateResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
feature_gates |
array of |
否 |