/admin/billing/plans/{plan_id}/feature-gates
更新指定套餐的 FeatureGates(功能开关)列表,支持按 key 开启/关闭功能。自动同步 MFA 和 SSO 布尔字段到套餐特性中。
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|---|---|
plan_id |
path |
string |
是 | 套餐ID (free/basic/pro/enterprise/platform) |
请求体
接受空 JSON 对象 {}
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 功能开关更新成功 | service-billing/internal/handler/dto.PlanPricingModelDetailResponse |
| 400 | 请求参数错误 | object |
| 401 | 未授权 | object |
| 403 | 无权限 | object |
| 404 | 套餐不存在 | object |
| 500 | 服务器内部错误 | object |
引用的 Schema
service-billing/internal/handler/dto.PlanPricingModelDetailResponse
Type: object