简要描述:
| 版本号 | 制定人 | 制定日期 | 修订日期 |
|---|---|---|---|
| 1.0.0 | kevin | 2023-12-13 |
请求URL:
请求方式:
- POST
请求头:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| token | 是 | string | token参数 |
请求参数:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| module | 是 | string | 模块 |
| page | 是 | int | 页码 |
| pagesize | 是 | int | 数量 |
返回示例:
正确时返回:
{
"status": 200,
"msg": "获取成功",
"data": {
"list": [
{
"cart_id": 3,
"num": 1,
"cover": "https://wzbuploads.oss-cn-hangzhou.aliyuncs.com/shop/2023/12/12/65780b07c5afc.jpg",
"goods_name": "香蕉",
"tomorrow_price": "20元",
"tomorrow_discount": "5折",
"presale_price": "10元",
"all_price": 10
}
],
"page": 1,
"pagesize": 1,
"total": 3
}
}
失败时返回:
{
"status": 0,
"msg": "更新失败"
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| cart_id | int | 购物车id |
| num | int | 数量 |
| cover | int | 商品封面 |
| goods_name | string | 商品名称 |
| tomorrow_price | string | 明日价 |
| tomorrow_discount | string | 折扣 |
| presale_price | string | 预售价 |
| all_price | int | 单个商品总价格【价格*数量】 |
备注:
- 无
作者:admin 创建时间:2023-12-13 15:12
更新时间:2025-04-10 15:43
更新时间:2025-04-10 15:43