专业书目需求
按专业返回需要配的书目清单,教材征订场景使用。
| 请求方式 | GET/POST |
| 接口路径 | /api/majorDemand/list |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
curl 调用
curl -s 'https://www.8shu8.com/api/majorDemand/list' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"cart": {
"cartList": [
"..."
],
"cartTotal": "...",
"goodsCount": 1,
"goodsAmount": 0.0,
"checkedGoodsCount": 1,
"checkedGoodsAmount": 0.0
},
"noGoods": [
{
"DELAY_DAY_7": "...",
"id": "...",
"userId": "...",
"goodsId": "...",
"goodsSn": "...",
"goodsName": "...",
"marketPrice": "...",
"retailPrice": "...",
"number": "...",
"goodsSpecifitionIds": "...",
"checked": "...",
"listPicUrl": "...",
"goodsCreator": "...",
"goodsSpecifitionNameValue": "...",
"isSelfSell": "...",
"goodsPageId": "...",
"addTime": "...",
"addType": "...",
"useRewardPoints": "...",
"shippingFee": "...",
"bookCondition": "...",
"bookConditionText": "...",
"isbn": "...",
"goodsNumber": "...",
"delayDeliverDay": "..."
}
],
"demandList": [
{
"STATUS_WORK": "...",
"STATUS_STOP": "...",
"id": "...",
"gmtCreated": "...",
"creater": "...",
"gmtModified": "...",
"modifier": "...",
"term": "...",
"isbn": "...",
"degree": "...",
"updateYear": "...",
"status": "...",
"majorId": "...",
"markWrongCnt": "...",
"title": "..."
}
],
"campusGroupBuy": true
}
}
返回字段(data)
| 字段 | 类型 | 说明 |
cart | 对象 | - |
cart.cartList | 对象数组 | - |
cart.cartList[].DELAY_DAY_7 | int | - |
cart.cartList[].id | Integer | - |
cart.cartList[].userId | Long | - |
cart.cartList[].goodsId | Long | 历史商品 id,不再入库 |
cart.cartList[].goodsSn | String | 商品编码 |
cart.cartList[].goodsName | String | 书名,按商品编码现查 图书档案 |
cart.cartList[].marketPrice | BigDecimal | 定价,现查 |
cart.cartList[].retailPrice | BigDecimal | 售价,现查后按学校系数计算 |
cart.cartList[].number | Integer | 数量 |
cart.cartList[].goodsSpecifitionIds | String | - |
cart.cartList[].checked | Integer | 是否选择下单 |
cart.cartList[].listPicUrl | String | 封面,现查 |
cart.cartList[].goodsCreator | Long | - |
cart.cartList[].goodsSpecifitionNameValue | String | - |
cart.cartList[].isSelfSell | Boolean | - |
cart.cartList[].goodsPageId | String | 详情页 id(书市商品),现查后拼出,不入库 |
cart.cartList[].addTime | LocalDateTime | - |
cart.cartList[].addType | 对象 | 添加类型:购物车、立即购买等 |
cart.cartList[].useRewardPoints | int | - |
cart.cartList[].shippingFee | BigDecimal | - |
cart.cartList[].bookCondition | String | 品相编码,现查 |
cart.cartList[].bookConditionText | String | 品相中文,现查 |
cart.cartList[].isbn | String | ISBN,现查 |
cart.cartList[].goodsNumber | Integer | 可售库存(校园预售仓:实库+超卖),不入库 |
cart.cartList[].delayDeliverDay | Integer | 预计延迟发货天数提示,不入库 |
cart.cartTotal | 对象 | - |
cart.goodsCount | int | - |
cart.goodsAmount | BigDecimal | - |
cart.checkedGoodsCount | int | - |
cart.checkedGoodsAmount | BigDecimal | - |
noGoods | 对象数组 | - |
noGoods[].DELAY_DAY_7 | int | - |
noGoods[].id | Integer | - |
noGoods[].userId | Long | - |
noGoods[].goodsId | Long | 历史商品 id,不再入库 |
noGoods[].goodsSn | String | 商品编码 |
noGoods[].goodsName | String | 书名,按商品编码现查 图书档案 |
noGoods[].marketPrice | BigDecimal | 定价,现查 |
noGoods[].retailPrice | BigDecimal | 售价,现查后按学校系数计算 |
noGoods[].number | Integer | 数量 |
noGoods[].goodsSpecifitionIds | String | - |
noGoods[].checked | Integer | 是否选择下单 |
noGoods[].listPicUrl | String | 封面,现查 |
noGoods[].goodsCreator | Long | - |
noGoods[].goodsSpecifitionNameValue | String | - |
noGoods[].isSelfSell | Boolean | - |
noGoods[].goodsPageId | String | 详情页 id(书市商品),现查后拼出,不入库 |
noGoods[].addTime | LocalDateTime | - |
noGoods[].addType | 对象 | 添加类型:购物车、立即购买等 |
noGoods[].useRewardPoints | int | - |
noGoods[].shippingFee | BigDecimal | - |
noGoods[].bookCondition | String | 品相编码,现查 |
noGoods[].bookConditionText | String | 品相中文,现查 |
noGoods[].isbn | String | ISBN,现查 |
noGoods[].goodsNumber | Integer | 可售库存(校园预售仓:实库+超卖),不入库 |
noGoods[].delayDeliverDay | Integer | 预计延迟发货天数提示,不入库 |
demandList | 对象数组 | - |
demandList[].STATUS_WORK | 对象 | - |
demandList[].STATUS_STOP | 对象 | - |
demandList[].id | Integer | - |
demandList[].gmtCreated | LocalDateTime | - |
demandList[].creater | Long | - |
demandList[].gmtModified | String | - |
demandList[].modifier | Long | - |
demandList[].term | Integer | 学期,0=秋季,1=春季 |
demandList[].isbn | String | 书编号 |
demandList[].degree | Integer | 年届(入学届),如 2023 表示 2023届 |
demandList[].updateYear | Integer | - |
demandList[].status | Integer | 状态 |
demandList[].majorId | Integer | - |
demandList[].markWrongCnt | Integer | - |
demandList[].title | String | 书名,列表时从 图书档案 现查,不入库 |
campusGroupBuy | Boolean | 当前校区是否校园团购(有承包人且已关联预售仓) |
| …(字段较多,仅列前 60 个) |