- 说明
- 首页模块
- 热门推荐
- 搜索模块
- 商品分类
- 商品详情
- 会员登录
- 会员中心-个人信息
- 会员中心-地址管理
- 会员中心-订单管理
- 购物车
- 支付
搜索-商品搜索-带筛选条件
开发中
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
可选
sortMethod
string
可选
示例
{
"page": 0,
"pageSize": 0,
"keyword": "string",
"associatedIds": [
"string"
],
"categoryId": "string",
"brandId": "string",
"onlyDiscount": true,
"sortField": "string",
"sortMethod": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/search/all' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
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
}
]
}
}
}
修改于 2022-12-27 15:02:17