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