文档
测试

产品搜索及动态排序List(分页处理)

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

接口描述

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

请求参数

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

响应参数

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

成功的示例

{ "status": 200, "data": { "records": [ { "id": 10004, "categoryId": 4, "name": "方法是", "subtitle": "4", "mainImage": "4", "subImages": "4", "detail": "4", "price": 4.00, "stock": 10, "status": 1, "isNew": 1, "isHot": 0, "isBanner": 1, "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": 0, "isBanner": 0, "createTime": "2018-11-27T16:51:04.000+00:00", "updateTime": "2018-11-27T16:51:07.000+00:00" } ], "total": 4, "size": 2, "current": 2, "orders": [], "optimizeCountSql": true, "hitCount": false, "countId": null, "maxLimit": null, "searchCount": true, "pages": 2 } }