[TOC]
简要描述
请求URL
https://food.taihuyun.vip/api/foodcash.goods/goodsCategoryList?applet_id=1&shop_id=1&token=8014374705939b271a346001006d8aa5&category_id=2
请求方式
参数
参数名 |
必选 |
类型 |
说明 |
applet_id |
是 |
string |
应用程序ID |
shop_id |
是 |
string |
门店ID |
token |
是 |
string |
用户身份验证的令牌 |
category_id |
是 |
int |
分类ID |
返回示例
{
"code": 1,
"msg": "success",
"data": [
{
"category_id": 22,
"name": "粤菜",
"parent_id": 0,
"image_id": 0,
"sort": 5,
"shop_id": 1,
"maker_id": 1,
"applet_id": 1,
"create_time": "2022-06-28 16:45:04",
"update_time": "2022-08-10 14:47:27",
"count": 0,
"goods": [
{
"goods_id": 100,
"goods_name": "豆豉凤爪",
"selling_point": "软糯Q弹",
"category_id": 22,
"spec_type": 20,
"deduct_stock_type": 20,
"content": "",
"sales_initial": 10,
"sales_actual": 20,
"goods_sort": 2,
"goods_status": {
"text": "已上架",
"value": 10
},
"audit_status": {
"text": "已通过审核",
"value": 10
},
"pack_price": 0,
"is_delete": 0,
"is_recommend": {
"text": "否",
"value": 0
},
"shop_id": 1,
"applet_id": 1,
"create_time": "2022-09-23 18:27:21",
"update_time": "2023-01-10 14:08:01",
"total_num": 0,
"specData": {
"spec_attr": [
{
"group_id": 32,
"group_name": "数量",
"spec_items": [
{
"item_id": 105,
"spec_value": "4"
}
]
}
],
"spec_list": [
{
"goods_spec_id": 471,
"spec_sku_id": "107",
"spec_name": "8",
"rows": [],
"form": {
"image_id": 0,
"image_url": "",
"goods_no": "",
"goods_price": "15.00",
"line_price": "0.00",
"stock_num": 0,
"goods_weight": 0
}
}
]
},
"spec": [
{
"goods_spec_id": 471,
"spec_sku_id": "107",
"goods_id": 100,
"image_id": 0,
"goods_no": "",
"goods_price": "15.00",
"line_price": "0.00",
"materials": null,
"stock_num": 0,
"goods_weight": 0,
"goods_sales": 11,
"applet_id": 1,
"create_time": "2022-09-23 18:27:55",
"update_time": "2022-11-14 14:44:49",
"sell_num": 0,
"image": null
}
],
"image": [
{
"id": 255,
"goods_id": 100,
"image_id": 10121,
"applet_id": 1,
"create_time": "2022-09-23 18:27:55",
"file_path": "20220923/58a66e6949584a3328755e6f538dcaac.png",
"url": "https://food.taihuyun.vip/uploads/20220923/58a66e6949584a3328755e6f538dcaac.png",
"domain": ""
}
],
"spec_rel": [
{
"spec_value_id": 107,
"spec_value": "8",
"spec_id": 32,
"applet_id": 1,
"create_time": "2022-09-23 18:26:41",
"spec": {
"spec_id": 32,
"spec_name": "数量",
"applet_id": 1,
"create_time": "2022-09-23 18:26:36"
},
"pivot": {
"id": 232,
"goods_id": 100,
"spec_id": 32,
"spec_value_id": 107,
"applet_id": 1,
"create_time": 0
}
}
],
"goods_sales": 30,
"stock": 0
}
]
}
返回参数说明
参数名 |
类型 |
说明 |
category_id |
int |
分类ID |
name |
string |
菜品名称 |
maker_id |
int |
创建ID |
image |
string |
图片路径 |
sort |
int |
分类、种类 |
create_time |
string |
创建时间 |
goods.goods_name |
string |
菜品名称 |
goods.content |
string |
菜品简介 |
goods.goods_status.value |
int |
菜品状态;10.已上架;20.未上架 |
goods.selling_point |
string |
菜品描述 |
goods.audit_status.value |
int |
审核状态;10.已通过审核;20.未通过 |
goods.image.url |
string |
菜品图片路径 |
goods.spec.goods_price |
string |
菜品价格 |
goods.spec.line_price |
string |
菜品原价 |
备注