文档
测试

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

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

接口描述

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

请求参数

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

响应参数

参数名
类型
描述
必填
code
Integer
响应状态码
必填
msg
String
响应信息
可选
data
T
响应数据
可选

成功示例

{ "code": 200, "data": { "records": [ { "id": 10001, "categoryId": 1, "name": "啊啊是", "subtitle": "1", "mainImage": "1", "subImages": "1", "detail": "1", "price": 1.00, "stock": 90, "status": 1, "isNew": 1, "isHot": 0, "isBanner": 0, "createTime": "2018-11-27T16:49:20.000+00:00", "updateTime": "2018-11-27T16:49:23.000+00:00" }, { "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 } }