文档
测试

商品搜索及动态排序

GET
http://localhost:8090/rlg/product/pl

接口描述

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

请求参数

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

响应参数

参数名
类型
描述
必填
code
integer
接口请求状态码
必填
msg
String
状态信息
必填
data
String
数据
必填
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": false, "isBanner": false, "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": true, "isBanner": false, "createTime": "2018-11-27T16:49:47.000+00:00", "updateTime": "2018-11-27T16:49:52.000+00:00" }, { "id": 10004, "categoryId": 4, "name": "方法是", "subtitle": "4", "mainImage": "4", "subImages": "4", "detail": "4", "price": 4.00, "stock": 10, "status": 1, "isNew": 1, "isHot": false, "isBanner": true, "createTime": "2018-11-27T16:50:27.000+00:00", "updateTime": "2018-11-27T16:50:31.000+00:00" }, { "id": 10006, "categoryId": 6, "name": "好是", "subtitle": "6", "mainImage": "6", "subImages": "6", "detail": "6", "price": 6.00, "stock": 100, "status": 1, "isNew": 1, "isHot": false, "isBanner": false, "createTime": "2018-11-27T16:51:04.000+00:00", "updateTime": "2018-11-27T16:51:07.000+00:00" } ], "total": 4, "size": 5, "current": 1, "orders": [], "optimizeCountSql": true, "hitCount": false, "countId": null, "maxLimit": null, "searchCount": true, "pages": 1 } }