1551934118171352.jpg

文章内容

微信小程序获取商家分类接口
作者:admin | 时间:2020-05-26 13:30:45

(1) 请求路径:xxx.com/ SmallProgAPI /Home/GetShopCategory

 

(2) 请求参数:

 

参数名称

必填

参数值说明

格式要求

shopId

int

商家编号(不是门店编号)

pid

int

上级编号 0表示从根结节开始

shopBranchId

int

门店编号,用于屏蔽无数据分类

 

(3) 返回值说明:Json格式

返回结果:

{"success":true,"msg":"","code":0,"data"::[{"Id":363,"ShopId":1,"ParentCategoryId":0,"Name":"书","DisplaySequence":30,"IsShow":true},{"Id":356,"ShopId":1,"ParentCategoryId":0,"Name":"test01","DisplaySequence":26,"IsShow":true},{"Id":350,"ShopId":1,"ParentCategoryId":0,"Name":"电脑","DisplaySequence":21,"IsShow":true},{"Id":347,"ShopId":1,"ParentCategoryId":0,"Name":"test","DisplaySequence":19,"IsShow":true},{"Id":331,"ShopId":1,"ParentCategoryId":0,"Name":"和规范和法国和","DisplaySequence":15,"IsShow":true},{"Id":321,"ShopId":1,"ParentCategoryId":0,"Name":"全品类","DisplaySequence":10,"IsShow":true}]}

 

 

返回结果参数说明:

 

字段名称

字段编码

数据类型

是否可空

备注

编号

Id

int


商家编号

ShopId

string


上级编号

ParentCategoryId

int


名称

Name




排序

DisplaySequence




是否显示

IsShow