POST /admin/billing/plans
新建一个套餐定价方案(free/basic/pro/enterprise/platform),定义名称、描述、月/年价格、币种和功能特性(最大用户数、存储、带宽、API调用、MFA/SSO、审计日志保留天数、支持级别)
计费服务 `bearerAuth` application/json
Request Body
Schema: dto.CreatePlanRequest
| Field | Type | Required | Example | Constraints | Description |
monthly_price |
number |
Yes |
499 |
|
|
name |
string |
Yes |
专业版 |
|
|
plan |
string |
Yes |
pro |
|
|
yearly_price |
number |
Yes |
4999 |
|
|
audit_log_days |
integer |
No |
90 |
|
|
currency |
string |
No |
CNY |
|
|
description |
string |
No |
适用于大型团队 |
|
|
max_api_requests |
integer |
No |
100000 |
|
|
max_bandwidth_gb |
integer |
No |
1024 |
|
|
max_storage_gb |
integer |
No |
100 |
|
|
max_users |
integer |
No |
100 |
|
|
mfa_enabled |
boolean |
No |
True |
|
|
sso_enabled |
boolean |
No |
True |
|
|
support_level |
string |
No |
priority |
|
|
Referenced Schemas
dto.PlanDetail
| Field | Type | Required | Example | Constraints | Description |
currency |
string |
No |
CNY |
|
|
description |
string |
No |
适用于大型团队 |
|
|
features |
array of
string |
No |
|
|
|
name |
string |
No |
专业版 |
|
|
plan_id |
string |
No |
pro |
|
|
price_monthly |
number |
No |
499 |
|
|
price_yearly |
number |
No |
4999 |
|
|
quotas |
object |
No |
|
extra keys: `integer` |
|
dto.PlanPricingDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.PlanPricingResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.PlanPricingResponse
| Field | Type | Required | Example | Constraints | Description |
plans |
array of
See dto.PlanDetail |
No |
|
|
|