A AuthMS API Wiki API Reference iam.tianv.com →

POST /admin/billing/plans

新建一个套餐定价方案(free/basic/pro/enterprise/platform),定义名称、描述、月/年价格、币种和功能特性(最大用户数、存储、带宽、API调用、MFA/SSO、审计日志保留天数、支持级别)

计费服务 `bearerAuth` application/json

Request Body

Schema: dto.CreatePlanRequest

FieldTypeRequiredExampleConstraintsDescription
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

Responses

StatusDescriptionSchema
201套餐创建成功dto.PlanPricingDetailResponse
400请求参数错误object
401未授权object
403无权限object
500服务器内部错误object

Referenced Schemas

dto.PlanDetail

FieldTypeRequiredExampleConstraintsDescription
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

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.PlanPricingResponse No
message string No
timestamp string No

dto.PlanPricingResponse

FieldTypeRequiredExampleConstraintsDescription
plans array of

See dto.PlanDetail

No