文档
测试

商品搜索及动态排序(分页)

GET
http://localhost:8080/rlg/product/pli

接口描述

根据关键字模糊查询商品并分页处理

请求参数

参数名
类型
描述
必填
keyWord
String
关键字
必填
pageNum
Integer
页码
必填
pageSize
Integer
每页显示数量
必填

响应参数

参数名
类型
描述
必填
code
Integer
接口请求状态码
必填
msg
String
接口请求返回信息
可选
data
String
接口请求返回数据
可选

成功的返回示例

{ "code": 200, "data": { "records": [ { "id": 10002, "categoryId": 2, "name": "订单是", "subtitle": "2", "mainImage": "2", "subImages": "2", "detail": "2", "price": 2.00, "stock": 90, "status": 1, "isNew": 1, "isHot": 1, "isBanner": 0, "createTime": "2018-11-27T16:49:47.000+00:00", "updateTime": "2018-11-27T16:49:52.000+00:00" } ], "total": 4, "size": 2, "current": 1, "orders": [], "optimizeCountSql": true, "hitCount": false, "countId": null, "maxLimit": null, "searchCount": true, "pages": 2 } }