#### 搜索
~~~[api]
post:/goods/searchGoods
//*id=默认值#说明文字
searchContent={categoryId, keywords,filterCondition,pageNum,pageSize,sortCondition}#搜索条件(jsonString)
// categoryId=1#分类id(int)
// keywords=cootel#关键词(string)
// filterCondition={"beginPrice":10, endPrice:20, "shipFlag":0|1}#筛选条件(jsonString)
// pageNum=1#页码(int)
// pageSize=6#页数(int)
// sortCondition={"orderBy":"","orderType":""}#排序条件(jsonString)
<<<
success
{
"retCode": 0,
"retMsg": "success",
"responseInfo": {
"currentPage":1,
"pageSize":6,
"pages":2,
"goodsVoList": [{
goodsId,
goodsName,
goodsCategory,
caegoryId,
goodsKeywords,
imgUrl,
goodsBrand,
property,
storePirce,
goodsPrice,
shipPrice
}]
}
}
<<<
error
{
"retCode": !0,
"retMsg": "errMsg"
}
~~~
#### 推荐搜索词
~~~[api]
get:/search/getSearchRecommendations.htm
type=all#关键词类型(string)
userId=3191#用户id(int)
<<<
success
{
"retCode": 0,
"retMsg": "success",
"responseInfo": {
"searchRecommendationsList": [{
"type":"all",
"keywords":"cootel",
"group":"people",
"description":"people",
"id":2
}]
}
}
<<<
error
{
"retCode": !0,
"retMsg": "errMsg"
}
~~~