1551934118171352.jpg

文章內容

自助建站門店商品列表接口
作者:admin | 時間︰2020-05-26 13:32:36

(1) 請求路徑︰xxx.com/smallprogapi/Product/GetProductList

 

(2) 請求參數︰

 

參數名稱

必填

參數值說明

格式要求

shopBranchId

int

門店編號

shopId

int

商鋪編號

pageNo

int

頁碼

pageSize

int

每頁顯示數

productId

int

置頂商品編號(僅第一頁有效)

shopCategoryId

int

商鋪分類編號

keyWords

string

關鍵字

categoryId

int

分類編號

openId

用戶openid

string

 

(3) 返回值說明︰Json格式

返回結果︰

{"success":true,"msg":"","code":0,"data":{"Products":[{"Id":1196,"ProductName":"官方商品","CategoryName":"富硒面粉","MeasureUnit":"件","MinSalePrice":"60.00","SaleCounts":3,"MarketPrice":128.00,"HasSku":false,"Quantity":1,"IsTop":false,"DefaultImage":"http://localhost:4573//Storage/Shop/1/Products/1196/1_350.png","HighCommentCount":0},{"Id":1202,"ProductName":"京糧測試數據3","CategoryName":"黑米","MeasureUnit":"kg","MinSalePrice":"60.00","SaleCounts":0,"MarketPrice":80.00,"HasSku":false,"Quantity":0,"IsTop":false,"DefaultImage":"http://localhost:4573//Storage/Shop/1/Products/1202/1_350.png","HighCommentCount":2},{"Id":1197,"ProductName":"京糧測試數據1","CategoryName":"碧根果","MeasureUnit":"kg","MinSalePrice":"80.00","SaleCounts":0,"MarketPrice":100.00,"HasSku":true,"Quantity":2,"IsTop":false,"DefaultImage":"http://localhost:4573//Storage/Shop/1/Products/1197/1_350.png","HighCommentCount":0},{"Id":1198,"ProductName":"京糧測試數據2","CategoryName":"花生","MeasureUnit":"kg","MinSalePrice":"50.00","SaleCounts":0,"MarketPrice":70.00,"HasSku":false,"Quantity":1,"IsTop":false,"DefaultImage":"http://localhost:4573//Storage/Shop/1/Products/1198/1_350.png","HighCommentCount":1}],"Total":4}}

 

 

返回結果參數說明︰

 

字段名稱

字段編碼

數據類型

是否可空

備注

商品集

Products

json


總數

Total

int


 

商品信息 Products

 

字段名稱

字段編碼

數據類型

是否可空

備注

商品編號

Id

int


商品名稱

ProductName

string


所屬分類名稱

CategoryName

string


商品單位

MeasureUnit

string


最低銷售價

MinSalePrice

decimal


銷量

SaleCounts

int


是否有規格

HasSku

bool


購物車內數量

Quantity

int


默認圖片

DefaultImage

string


是否置頂商品

IsTop

bool


好評數

HighCommentCount

int