商品列表
GET
/goods/list/{page}/{limit}请求参数
Path 参数
page
string
页码
limit
string
每页展示条数
Query 参数
category1Id
string
一级分类 id
category2Id
string
二级分类 id
示例值:
1
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
records
array [object {18}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array[string]
必需
optimizeCountSql
boolean
必需
hitCount
boolean
必需
countId
null
必需
maxLimit
null
必需
searchCount
boolean
必需
pages
integer
必需
示例
{
"code": 58,
"message": "ea dolore",
"data": {
"records": [
{
"id": 85,
"createTime": "2019-07-07 00:15:38",
"updateTime": "2002-05-27 21:33:01",
"isDeleted": 11,
"category1Id": 19,
"category2Id": 33,
"name": "专快断劳线公",
"price": 56,
"marketPrice": 74,
"saleCount": 78,
"stockCount": 20,
"imageUrl": "http://dummyimage.com/400x400",
"floralLanguage": "ut",
"applyUser": "ullamco Duis dolor ut tempor",
"material": "id nisi Duis",
"packing": "ea incididunt nulla ullamco ut",
"isRecommend": 50,
"detailList": null
},
{
"id": 8,
"createTime": "1984-04-04 00:53:09",
"updateTime": "1977-10-24 06:03:30",
"isDeleted": 13,
"category1Id": 19,
"category2Id": 29,
"name": "里运则育来根",
"price": 17,
"marketPrice": 96,
"saleCount": 32,
"stockCount": 10,
"imageUrl": "http://dummyimage.com/400x400",
"floralLanguage": "irure",
"applyUser": "elit occaecat tempor aliqua enim",
"material": "dolor cillum",
"packing": "est non aliqua",
"isRecommend": 77,
"detailList": null
}
],
"total": 53,
"size": 79,
"current": 15,
"orders": [
"qui aliqua",
"in sit laboris consequat"
],
"optimizeCountSql": false,
"hitCount": true,
"countId": null,
"maxLimit": null,
"searchCount": false,
"pages": 9
}
}
最后修改时间: 1 年前