PATCH /admin/billing/plans/{id}/feature-gates
更新指定套餐的 FeatureGates(功能开关)列表,支持按 key 开启/关闭功能。自动同步 MFA 和 SSO 布尔字段到套餐特性中。
计费服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
套餐ID (free/basic/pro/enterprise/platform) |
Request Body
Accepts an empty JSON object {}
Referenced Schemas
billing.FeatureGate
| Field | Type | Required | Example | Constraints | Description |
description |
string |
No |
|
|
功能描述 |
enabled |
boolean |
No |
|
|
当前租户是否启用 |
key |
string |
No |
|
|
"nhi", "mfa", "sso", "audit_export" |
name |
string |
No |
|
|
"Non-Human Identities" (展示名) |
dto.PlanPricingModelDetailResponse
dto.PlanPricingModelResponse
| Field | Type | Required | Example | Constraints | Description |
created_at |
string |
No |
2026-01-01T00:00:00Z |
|
|
currency |
string |
No |
CNY |
|
|
description |
string |
No |
适用于大型团队 |
|
|
feature_gates |
array of
See billing.FeatureGate |
No |
|
|
|
id |
string |
No |
ppm_001 |
|
|
monthly_price |
number |
No |
499 |
|
|
name |
string |
No |
专业版 |
|
|
plan |
string |
No |
pro |
|
|
status |
string |
No |
active |
|
|
updated_at |
string |
No |
2026-04-10T14:20:00Z |
|
|
yearly_price |
number |
No |
4999 |
|
|