[TOC]
简要描述
请求URL
https://food.taihuyun.vip/api/foodcash.goods/food?applet_id=1&shop_id=1&token=8014374705939b271a346001006d8aa5&goods_name=西红柿
请求方式
参数
参数名 |
必选 |
类型 |
说明 |
applet_id |
是 |
string |
应用程序ID |
shop_id |
是 |
string |
门店ID |
token |
是 |
string |
用户身份验证的令牌 |
goods_name |
否 |
string |
菜品名关键字搜索 |
返回示例
{
"code": 1,
"msg": "success",
"data": {
"category": [
{
"category_id": 3,
"name": "东北菜",
"parent_id": 0,
"image_id": 0,
"sort": 2,
"shop_id": 1,
"maker_id": 3,
"applet_id": 1,
"create_time": "2022-05-29 14:36:17",
"update_time": "2022-09-22 19:50:03",
"count": 1,
"goods": [
{
"goods_id": 7,
"goods_name": "西红柿炒鸡蛋",
"selling_point": "健康营养",
"category_id": 3,
"spec_type": 10,
"deduct_stock_type": 20,
"content": "",
"sales_initial": 0,
"sales_actual": 299483,
"goods_sort": 4,
"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-06-04 13:49:16",
"update_time": "2022-12-06 16:02:20",
"total_num": "1",
"specData": null,
"spec": [
{
"goods_spec_id": 478,
"spec_sku_id": "",
"goods_id": 7,
"image_id": 0,
"goods_no": "",
"goods_price": "6.00",
"line_price": "8.00",
"materials": null,
"stock_num": 0,
"goods_weight": 0,
"goods_sales": 16,
"applet_id": 1,
"create_time": "2022-09-23 18:59:55",
"update_time": "2022-12-06 16:02:20"
}
],
"image": [
{
"id": 262,
"goods_id": 7,
"image_id": 10126,
"applet_id": 1,
"create_time": "2022-09-23 18:59:55",
"file_path": "20220923/e6f5b8bdc2b107ae578502ce48c8aa58.png",
"url": "https://food.taihuyun.vip/uploads/20220923/e6f5b8bdc2b107ae578502ce48c8aa58.png",
"domain": ""
}
],
"spec_rel": [],
"goods_sales": 299483,
"stock": 0
}
],
"image": null
}
],
"order_total_num": 2,
"order_total_price": "60.00",
"goodslist": [
{
"goods_id": 7,
"goods_name": "西红柿炒鸡蛋",
"selling_point": "健康营养",
"category_id": 3,
"spec_type": 10,
"deduct_stock_type": 20,
"sales_initial": 0,
"sales_actual": 299483,
"goods_sort": 4,
"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-06-04 13:49:16",
"update_time": "2022-12-06 16:02:20",
"goods_sku_id": "",
"goods_sku": {
"goods_spec_id": 478,
"spec_sku_id": "",
"goods_id": 7,
"image_id": 0,
"goods_no": "",
"goods_price": "6.00",
"line_price": "8.00",
"materials": null,
"stock_num": 0,
"goods_weight": 0,
"goods_sales": 16,
"applet_id": 1,
"create_time": "2022-09-23 18:59:55",
"update_time": "2022-12-06 16:02:20",
"image": null,
"goods_attr": ""
},
"goods_price": "6.00",
"total_num": "1",
"total_price": "6.00",
"image": [
{
"id": 262,
"goods_id": 7,
"image_id": 10126,
"applet_id": 1,
"create_time": "2022-09-23 18:59:55",
"file_path": "20220923/e6f5b8bdc2b107ae578502ce48c8aa58.png",
"url": "https://food.taihuyun.vip/uploads/20220923/e6f5b8bdc2b107ae578502ce48c8aa58.png",
"domain": ""
}
],
"spec_rel": [],
"goods_sales": 299483,
"stock": 0
}
]
}
}
返回参数说明
参数名 |
类型 |
说明 |
category.category_id |
int |
分类ID |
category.name |
string |
菜品名称 |
category.maker_id |
int |
创建ID |
category.image |
string |
图片路径 |
category.sort |
int |
分类、种类 |
category.create_time |
string |
创建时间 |
category.goods.goods_name |
string |
菜品名称 |
category.goods.content |
string |
菜品简介 |
category.goods.goods_status.value |
int |
菜品状态;10.已上架;20.未上架 |
category.goods.selling_point |
string |
菜品描述 |
category.goods.audit_status.value |
int |
审核状态;10.已通过审核;20.未通过 |
category.goods.image.url |
string |
菜品图片路径 |
category.goods.spec.goods_price |
string |
菜品价格 |
category.goods.spec.line_price |
string |
菜品原价格 |
category.goods.pack_price |
string |
打包价格 |
category.goods.total_num |
string |
数量 |
category.goodslist.goods_name |
string |
搜索到的菜品名称 |
category.goodslist.goods_status.value |
int |
搜索到的菜品状态;10.已上架;20.未上架 |
category.goodslist.selling_point |
string |
搜索到的菜品描述 |
category.goodslist.audit_status.value |
int |
搜索到的审核状态;10.已通过审核;20.未通过 |
category.goodslist.image.url |
string |
搜索到的菜品图片路径 |
category.goodslist.goods_price |
string |
搜索到的菜品价格 |
category.goodslist.pack_price |
string |
搜索到的打包价格 |
category.goodslist.total_num |
int |
搜索到的数量 |
category.goodslist.total_price |
string |
搜索到的总价格 |
category.goodslist.goods_sku.line_price |
string |
搜索到的菜品原价格 |
备注