团购详情
按活动 ID 查团购的书籍、价格、成团条件和当前进度。
| 请求方式 | GET |
| 接口路径 | /api/campus/groupBuy/detail |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
请求参数
| 参数 | 类型 | 必填 | 位置 |
id | Integer | 是 | URL 参数 |
curl 调用
curl -s 'https://www.8shu8.com/api/campus/groupBuy/detail?id=1' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'
响应示例
{
"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
}
}
返回字段(data)
| 字段 | 类型 | 说明 |
id | Integer | - |
schoolId | Integer | - |
title | String | - |
status | 对象 | - |
groupPrice | BigDecimal | - |
minUsers | Integer | - |
expireTime | LocalDateTime | - |
contactName | String | - |
contactPhone | String | - |
contactWechat | String | - |
remark | String | - |
creater | Long | - |
addTime | LocalDateTime | - |
updateTime | LocalDateTime | - |
items | 对象数组 | - |
items[].id | Integer | - |
items[].groupId | Integer | - |
items[].isbn | String | - |
items[].title | String | - |
joinCount | Integer | - |
joined | Boolean | - |