文档
测试

分页获取所有商品

GET
http://localhost:8080/api/product/product/list/pages

请求参数

参数名
类型
描述
必填
page
int
页数
必填
limit
int
每页个数
必填

响应参数

参数名
类型
描述
必填
msg
string
示例:获取成功!
必填
code
int
示例:0
必填
data
object
数据字典
必填
totalCount
int
示例:8
必填
pageSize
int
示例:3
必填
totalPage
int
示例:3
必填
currPage
int
示例:1
必填
list
array
数据列表
必填
productId
int
示例:1
必填
name
string
示例:小米6
必填
image
string
示例:无
必填
description
string
示例:小米六
必填
brandId
int
示例:1
必填
catelogId
int
示例:16
必填
minPrice
int
示例:3000
必填

说明 / 示例

# 发送实例: ~~~ http://localhost:8088/product/product/list/pages?page=1&limit=3 ~~~ 返回示例: ~~~ { "msg": "获取成功!", "code": 0, "data": { "totalCount": 8, "pageSize": 3, "totalPage": 3, "currPage": 1, "list": [ { "productId": 1, "name": "小米6", "image": "无", "description": "小米六", "brandId": 1, "catelogId": 16, "minPrice": 3000.00 }, { "productId": 2, "name": "小米7", "image": "无", "description": "无", "brandId": 1, "catelogId": 16, "minPrice": 4000.00 }, { "productId": 3, "name": "iphone 14", "image": "无", "description": "无", "brandId": 3, "catelogId": 1, "minPrice": 5000.00 } ] } } ~~~