套餐列表
GET
/plans请求参数
Query 参数
page
integer
页码
per_page
integer
每页展示数量
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
string
必需
message
string
必需
data
object
必需
current_page
integer
必需
data
array [object {6}]
必需
first_page_url
string
必需
from
integer
必需
last_page
integer
必需
last_page_url
string
必需
links
array [object {3}]
必需
next_page_url
null
必需
path
string
必需
per_page
integer
必需
prev_page_url
null
必需
to
integer
必需
total
integer
必需
time
integer
必需
示例
{
"status": "success",
"message": "successful",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"type": "vip",
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数"
],
"badge": "促销"
}
],
"first_page_url": "http://127.0.0.1:8000/api/v2/plans?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://127.0.0.1:8000/api/v2/plans?page=1",
"links": [
{
"url": null,
"label": "« 上一页",
"active": false
},
{
"url": "http://127.0.0.1:8000/api/v2/plans?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "下一页 »",
"active": false
}
],
"next_page_url": null,
"path": "http://127.0.0.1:8000/api/v2/plans",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
},
"time": 1725503741
}
最后修改时间: 1 个月前