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