GET /api/private/v1/plans
分页查询当前项目中的套餐列表,并附带配额配置。
查询参数
| 参数 | 类型 | 说明 |
|---|---|---|
page | number | 页码 |
pageSize | number | 每页条数 |
search | string | 按套餐名称模糊搜索 |
成功响应
{
"ok": true,
"requestId": "req_123",
"data": {
"data": [
{
"id": 2,
"slug": "pro",
"name": "Pro",
"projectId": "clx_project",
"value": 100,
"group": "main",
"createdAt": "2026-03-01T00:00:00.000Z",
"updatedAt": "2026-03-01T00:00:00.000Z",
"quotas": [
{
"id": 8,
"planId": 2,
"featureId": 5,
"limit": 1000,
"priority": 0,
"resetInterval": "P1M",
"createdAt": "2026-03-01T00:00:00.000Z",
"updatedAt": "2026-03-01T00:00:00.000Z",
"feature": {
"id": 5,
"slug": "api-calls",
"name": "API Calls",
"description": "Monthly API calls",
"projectId": "clx_project",
"metered": true,
"unit": "count",
"createdAt": "2026-03-01T00:00:00.000Z",
"updatedAt": "2026-03-01T00:00:00.000Z"
}
}
]
}
],
"total": 1,
"page": 1,
"pageSize": 10,
"totalPages": 1
}
}