校园团购列表
分页查看正在进行和已结束的校园团购活动。
| 请求方式 | GET |
|---|---|
| 接口路径 | /api/campus/groupBuy/list |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
curl 调用
curl -s 'https://www.8shu8.com/api/campus/groupBuy/list' \ -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'
响应示例
data 为数组,每项结构见下方字段说明。
{
"code": 200,
"message": "操作成功",
"success": true,
"data": [
{
"id": 1,
"schoolId": 1,
"title": "string",
"status": "...",
"groupPrice": 0.0,
"minUsers": 1,
"expireTime": "string",
"contactName": "string",
"contactPhone": "string",
"contactWechat": "string",
"remark": "string",
"creater": 1,
"addTime": "string",
"updateTime": "string",
"items": [
{
"id": "...",
"groupId": "...",
"isbn": "...",
"title": "..."
}
],
"joinCount": 1,
"joined": true
}
]
}