文档
测试

食材页面-店铺,顶级分类

GET
/index.php/AllApi/shop_cat_list

接口描述

获取关注的商家以及顶级分类,获取是必须传用户user_id,200则为成功,其他为失败或者未关注

请求头

参数名
类型
描述
必填
content-type
str
application/x-www-form-urlencoded
必填

请求参数

参数名
类型
描述
必填
user_id
str
必填
必填

响应参数

参数名
类型
描述
必填
code
int
200 成功提示,40001:缺少用户user_id参数!!
必填
data
obj
包含follow_shop(已经关注的商家),classify(顶级分类)
必填
follow_shop
arr
关注的商家
必填
shop_id
int
商家id
必填
shop_name
str
商家名称
必填
head_portrait
str
商家logo
必填
classify
arr
顶级分类
必填
Id
int
分类id
必填
cat_name
str
分类名称
必填
order_by
int
分类排序值
必填
parent_id
int
默认为0顶级分类
必填
msg
str
ok成功描述
必填

说明 / 示例

返回参数 code: 200 msg: "OK" data{ follow_shop: [{shop_id: "41", shop_name: "中兴", head_portrait: ""}] classify: [{Id: "73", cat_name: "干鲜", order_by: "10", parent_id: "0"},…] }