获取包月开机列表,支持分页,单页最大100条记录
POST /api/v1/subscriptionStartup/list
| 参数 | 类型 | 必需 | 说明 |
|---|---|---|---|
| id | string | 否 | ID |
| name | string | 否 | 名称 |
| remark | string | 否 | 备注 |
| renewal_status | int | 否 | 自动续费,0 关闭;1 开启 |
| sort_by | string | 否 | 排序字段,name 名称;created_at 创建时间;expired_at 过期时间 |
| order | string | 否 | 排序规则,根据sort_by指定字段排序,asc 正序;desc 倒序 |
| page | int | 否 | 请求页码,若不传则默认为第一页 |
| pagesize | int | 否 | 每页数量,若不传则默认10条/页 |
{
"page": 1,
"pagesize": 10,
"sort_by": "created_at",
"order": "desc",
"id": "xxx",
"name": "xxx",
"renewal_status": 0,
"remark": "xxx"
}
{
"code": 200,
"data": {
"list": [
{
"id": "xx", // 包月开机ID
"name": "xx", // 名称
"cpu": "8核", // CPUs
"ram": "4G", // 内存
"rom": "32G", // 存储
"renewal_status": 0, // 是否续费
"remark": "xx", // 备注
"expired_at": "1770108845", // 过期时间
"created_at": "1759136045", // 创建时间
"need_renewal": false // 是否即将过期
}
],
"page": 1,
"pagesize": 10,
"total": 1,
"total_page": 1
},
"message": "Success"
}