搜索-商品搜索-带筛选条件
开发中POST
/search/all请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
page
integer
页码
pageSize
integer
页尺寸
keyword
string
所输入的关键词
associatedIds
array[string]
联想词Id集合
categoryId
string
分类id
brandId
string
品牌id
onlyDiscount
boolean
只显示特惠
sortField
string
可选
排序字段,取值范围:[publishTime,orderNum,price,evaluateNum]
sortMethod
string
可选
排序规则,asc为正序,desc为倒序,默认为desc
示例
{
"page": 0,
"pageSize": 0,
"keyword": "string",
"associatedIds": [
"string"
],
"categoryId": "string",
"brandId": "string",
"onlyDiscount": true,
"sortField": "string",
"sortMethod": "string"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
msg
string
提示语
result
object
数据信息
conditions
object
条件信息
pageData
object
分页信息
示例
{
"msg": "string",
"result": {
"conditions": {
"categories": [
{
"id": "string",
"name": "string"
}
],
"brands": [
{
"id": "string",
"name": "string",
"nameEn": "string",
"logo": "string"
}
]
},
"pageData": {
"counts": 0,
"pageSize": 0,
"pages": 0,
"page": 0,
"items": [
{
"id": "string",
"picture": "https://yanxuan-item.nosdn.127.net/65be335760e2375432b4410adbd32b2f.png?type=webp&imageView&quality=95&thumbnail=210x210",
"name": "string",
"price": 0,
"desc": "string",
"discount": 0
}
]
}
}
}
修改于 2 年前