文章内容
(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 | 否 |