简要描述:
| 版本号 | 制定人 | 制定日期 | 修订日期 |
|---|---|---|---|
| 1.0.0 | kevin | 2026-01-27 |
请求URL:
请求方式:
- GET
请求头:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| store_id | 是 | string | 门店id |
请求参数:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|
返回示例:
正确时返回:
{
"status": 200,
"msg": "ok",
"data": [
{
"cate_id": 1,
"cate_name": "獅城之味",
"good_list": [
{
"cate_id": 1,
"good_id": 1,
"created_at": "2026-01-22 22:22:32",
"updated_at": "2026-01-22 22:22:32",
"request_good_id": 1,
"good_name": "礦泉水350ml1",
"cover": "http://pos.com/uploads/cover/2026/01/22/6971de2cb6824.png",
"original_price": 301,
"price": 301,
"introduction": "350ml1",
"attr_list": []
},
{
"cate_id": 1,
"good_id": 4,
"created_at": "2026-01-22 22:34:07",
"updated_at": "2026-01-22 22:34:07",
"request_good_id": 3,
"good_name": "甘榜雞(全雞)",
"cover": "http://pos.com/uploads/cover/2026/01/22/69720285691e4.jpg",
"original_price": 1299,
"price": 1299,
"introduction": "",
"cart_info": {
"cart_id": 29,
"request_good_id": 3,
"number": 6
},
"attr_list": [
{
"good_id": 4,
"attr_id": 3,
"option_list": [
{
"attr_id": 1,
"option_name": "不去骨",
"number": 1,
"original_price": 0,
"erp_coding": "",
"barcode": "",
"external_encoding": "",
"option_id": 1
}
],
"attr_name": "保留骨頭",
"default_select": 2,
"is_required": 2,
"select_type": 1
}
]
}
]
},
{
"cate_id": 2,
"cate_name": "老王主食",
"good_list": []
}
],
"other": []
}错误时返回:
{
"status": 0,
"msg": "验证错误"
}返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| cate_id | string | 分类id |
| cate_name | string | 分类名称 |
| good_list.request_good_id | string | 商品请求id |
| good_list.good_name | string | 商品名称 |
| good_list.cover | string | 商品封面 |
| good_list.original_price | string | 商品原价 |
| good_list.price | string | 商品售价 |
| good_list.introduction | string | 商品介紹 |
| good_list.attr_list.good_id | string | 商品ID |
| good_list.attr_list.attr_id | string | 品项ID |
| good_list.attr_list.attr_name | string | 品项名称 |
| good_list.attr_list.is_required | string | 是否必选【1=必选,2=不必选】 |
| good_list.attr_list.select_type | string | 選項類型【1=单选,2=多选】 |
| good_list.attr_list.option_list.option_name | string | 选项名称 |
| good_list.attr_list.option_list.number | string | 数量 |
| good_list.attr_list.option_list.original_price | string | 原价 |
| good_list.attr_list.option_list.option_id | string | 选项ID |
| good_list.attr_list.option_list.default_select | string | 预设选中【1=选中,2=未选中】 |
| good_list.cart_info.cart_id | string | 购物车ID |
| good_list.cart_info.request_good_id | string | 商品请求id |
| good_list.cart_info.number | string | 商品数量 |
备注:
- 无
作者:admin 创建时间:2026-01-27 14:36
最后编辑:admin 更新时间:2026-02-05 21:16
最后编辑:admin 更新时间:2026-02-05 21:16