- Tigshop标准版
- 后台adminapi
- authority --- 权限组
- merchant ----商户
- common --- 公共方法组
- content --- 文章组
- decorate --- 装修组
- promotion --- 营销组
- setting --- 配置组
- salesman --- 分销
- user --- 会员模块
- finance --- 财务组
- product --- 商品
- product_attributes --- 商品属性管理(待定)
- product_attributes_tpl --- 商品属性模板管理
- product_inventory_log --- 商品库存日志管理
- product_batch --- 商品批量处理管理
- product_services --- 商品服务
- e_card_group --- 电子卡券组
- e_card --- 电子卡券
- product_group ---商品分组
- shop_product_category ---店铺商品分类 (待定)
- price_inquiry --- 询价管理
- brand --- 品牌管理
- category --- 商品分类管理
- comment --- 商品评论管理
- product --- 商品管理
- panel --- 统计面板组
- lang --- 多语言
- login --- 登录组
- order---订单组
- msg --- 消息管理组
- 前台api
- search --- 搜索
- merchant --- 商户
- article --- 文章
- salesman --- 分销
- product --- 商品
- order --- 订单
- category --- 商品分类
- home --- 首页
- cart --- 购物车
- user --- 会员中心
- common --- 公共方法
- shop --- 店铺
- IM
- 安装
购物车列表
开发中
GET
/api/cart/cart/list
请求参数
Header 参数
Authorization
string
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/cart/cart/list' \
--header 'Authorization;'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 0,
"msg": "ok",
"data": {
"cart_list": [
{
"shop_id": 0,
"shop_title": "",
"carts": [
{
"cart_id": 1250,
"user_id": 1,
"product_id": 293,
"product_sn": "SN000293",
"pic_thumb": "img/item/demo/16819806413VWOO3Rduxbvtpr1Xx!!pic200x200.jpeg",
"market_price": "0.00",
"original_price": "1999.00",
"quantity": 3,
"sku_id": 0,
"sku_data": [],
"product_type": 1,
"is_checked": true,
"shop_id": 0,
"type": 1,
"update_time": 1729847264,
"salesman_id": 0,
"product_weight": "0.000",
"shipping_tpl_id": 1,
"free_shipping": 0,
"product_status": 1,
"product_name": "单冷空调新能效大1匹 自清洁壁挂式空调",
"product_price": "2099.00",
"category_id": 431,
"brand_id": 162,
"product_stock": 9988,
"shop": null,
"sku": null,
"price": 1992.34,
"stock": 9988,
"has_sku": false,
"subtotal": "5977.02",
"origin_price": "2099.00",
"is_disabled": false,
"activity_info": [
{
"promotion_id": 168,
"promotion_name": "44",
"start_time": 1729180800,
"end_time": 1731859199,
"type": 1,
"shop_id": 0,
"relation_id": 75,
"range": 3,
"range_data": [
293
],
"sku_ids": [],
"is_available": 1,
"is_delete": 0,
"data": {
"seckill_id": 75,
"seckill_name": "44",
"seckill_start_time": "2024-10-18 00:00:00",
"seckill_end_time": "2024-11-17 23:59:59",
"seckill_limit_num": 0,
"product_id": 293,
"shop_id": 0
}
}
]
}
],
"used_promotions": {
"168": {
"seckill_id": 75,
"seckill_name": "44",
"seckill_start_time": "2024-10-18 00:00:00",
"seckill_end_time": "2024-11-17 23:59:59",
"seckill_limit_num": 0,
"product_id": 293,
"shop_id": 0,
"amount": "300.00",
"promotion_id": 168,
"type": 1
},
"169": {
"promotion_desc": "满100元减20",
"coupon_id": 64,
"coupon_name": "电器满200减20",
"coupon_money": "20.00",
"coupon_discount": "10.0",
"coupon_desc": "仅可用于购买电器。",
"coupon_type": 1,
"send_range": 3,
"send_range_data": [
297
],
"min_order_amount": "100.00",
"send_start_date": "",
"send_end_date": "",
"send_type": 1,
"use_day": 0,
"use_start_date": "2024-10-22 10:06:48",
"use_end_date": "2024-11-06 10:06:48",
"is_show": 1,
"is_global": 0,
"is_new_user": 0,
"enabled_click_get": 0,
"limit_user_rank": [],
"shop_id": 0,
"is_delete": 0,
"limit_num": 0,
"delay_day": 0,
"send_num": 1000,
"max_order_amount": "0.00",
"coupon_unit": 1,
"reduce_type": 1,
"add_time": "",
"is_receive": 1,
"amount": "20.00",
"promotion_id": 169,
"type": 2
}
},
"enableUsePromotion": {
"169": {
"promotion_desc": "满100元减20",
"coupon_id": 64,
"coupon_name": "电器满200减20",
"coupon_money": "20.00",
"coupon_discount": "10.0",
"coupon_desc": "仅可用于购买电器。",
"coupon_type": 1,
"send_range": 3,
"send_range_data": [
297
],
"min_order_amount": "100.00",
"send_start_date": "",
"send_end_date": "",
"send_type": 1,
"use_day": 0,
"use_start_date": "2024-10-22 10:06:48",
"use_end_date": "2024-11-06 10:06:48",
"is_show": 1,
"is_global": 0,
"is_new_user": 0,
"enabled_click_get": 0,
"limit_user_rank": [],
"shop_id": 0,
"is_delete": 0,
"limit_num": 0,
"delay_day": 0,
"send_num": 1000,
"max_order_amount": "0.00",
"coupon_unit": 1,
"reduce_type": 1,
"add_time": "",
"is_receive": 1,
"amount": "20.00"
}
},
"gift": []
}
],
"total": {
"product_amount": 8301.68,
"checked_count": 9,
"discounts": 320,
"discount_after": 7981.68,
"total_count": 9,
"discount_coupon_amount": 20,
"discount_seckill_amount": 300,
"discount_product_promotion_amount": 0,
"discount_time_discount_amount": 0
},
"errcode": 0,
"message": ""
}
}
🟠404失败