Authored by lijian

时间重构

# 搜索词管理
---------------------
## 新增默认搜索词
> 接口名:`searchWords/addSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|type|int|1|搜索词类型:1默认搜索词 |
|content|String|内容实得分|内容|
|channelIds|String|1,2,3|频道类型 多个用逗号隔开 默认搜索词专用|
|url|String|https://pandao.github.io/editor.md/examples/simple.html|链接|
|startTime|int|1449504000|开始时间,时间的秒数|
|endTime|int|1449504000|结束时间,时间的秒数|
---------------------
### 返回
``` json
请求样例:
{
"channelIds": "2,3",
"content": "2342",
"endTime": 1449504000,
"startTime": 1449504000,
"type": 1,
"url": "https://pandao.github.io/editor.md/examples/simple.html"
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "添加成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "频道不能为空"
}
```
## 修改默认搜索词
> 接口名:`searchWords/updateSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|主键 |
|type|int|1|搜索词类型:1默认搜索词 |
|channelIds|String|1,2,3|频道类型 多个用逗号隔开 默认搜索词专用|
|url|String|https://pandao.github.io/editor.md/examples/simple.html|链接|
|startTime|int|1449504000|开始时间,时间的秒数|
|endTime|int|1449504000|结束时间,时间的秒数|
|status|int|1|状态 2 开启 1 禁用|
---------------------
### 样例
``` json
请求样例:
{
"channelIds": "2,3",
"content": "2342",
"endTime": 1449504000,
"startTime": 1449504000,
"type": 1,
"status": 1,
"id": 111,
"url": "https://pandao.github.io/editor.md/examples/simple.html"
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "修改成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "内容不能为空"
}
```
## 查询默认搜索词
> 接口名: `/searchWords/querySearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|50|每页条数|
|type|int|1|搜索词类型:1默认搜索词 |
|channelIds|String|3|频道类型|
|startTime|int|1449504000|开始时间,时间的秒数|
|endTime|int|1449504000|结束时间,时间的秒数|
|status|int|1|状态 2 开启 1 禁用|
---------------------------
### 返回
```json
请求
{
"page":0,
"size":3,
"content":"哈哈",
"type":2,
"channelIds":1
}
返回:
{
"code": 200,
"data": {
"list": [
{
"channelIds": "",
"content": "呵呵哈哈",
"createdTime": 1451290193,
"creatorUid": 2799,
"creatorUsrname": "gaoshang",
"endTime": 0,
"goodsNum": 0,
"id": 99,
"modifyTime": 0,
"modifyUid": 0,
"sort": 7,
"startTime": 0,
"status": 2,
"type": 3,
"url": ""
},
{
"channelIds": "",
"content": "哈哈哈",
"createdTime": 1451290166,
"creatorUid": 2799,
"creatorUsrname": "gaoshang",
"endTime": 0,
"goodsNum": 4,
"id": 97,
"modifyTime": 1451326921,
"modifyUid": 100019,
"modifyUsrname": "zhipeng.wei",
"sort": 4,
"startTime": 0,
"status": 2,
"type": 2,
"url": ""
},
{
"channelIds": "",
"content": "呵呵哈哈",
"createdTime": 1451290085,
"creatorUid": 2799,
"creatorUsrname": "gaoshang",
"endTime": 1451577600,
"goodsNum": 0,
"id": 96,
"modifyTime": 0,
"modifyUid": 0,
"sort": 0,
"startTime": 1451232000,
"status": 2,
"type": 1,
"url": ""
}
],
"page": 1,
"size": 3,
"total": 3,
"totalPage": 1
},
"md5": "01acb7689ad5d33bb49613d9d3a4cbb1",
"message": "查询搜索词列表"
}
```
--------
## 新增下拉词
> 接口名:`searchWords/addSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|type|int|2|搜索词类型:2默认搜索词 |
|content|String|内容实得分|内容|
|goodsNum|int|4|商品数|
|sort|int|12|排序|
---------------------
### 返回
``` json
请求样例:
{
"content": "2342",
"creatorUid": 3,
"creatorUsrname": "zhangsan",
"goodsNum": 1,
"sort": "32"
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "添加成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "频道不能为空"
}
```
## 修改下拉词
> 接口名:`searchWords/updateSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|主键 |
|type|int|2|搜索词类型:2 下拉词 |
|goodsNum|int|4|商品数|
|sort|int|12|排序|
|status|int|1|状态 2 开启 1 禁用|
---------------------
### 样例
``` json
请求样例:
{
"content": "2342",
"endTime": 1449504000,
"modifyUid": 3,
"modifyUsrname": "zhangsan",
"type":2,
"status": 1,
"id": 111,
"goodsNum": 3,
"sort": 3
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "修改成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "内容不能为空"
}
```
## 查询下拉词
> 接口名: `/searchWords/querySearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|10|每页条数|
|type|int|2|搜索词类型:2 下拉词 |
|content|String|阿迪| 内容|
|status|int|1|状态 2 开启 1 禁用|
---------------------------
### 返回
```json
请求
{
"page":0,
"size":3,
"content":"哈哈",
"type":2,
"status":1
}
返回:
{
"code": 200,
"data": {
"list": [
{
"channelIds": "",
"content": "呵呵哈哈",
"createdTime": 1451290193,
"creatorUid": 2799,
"creatorUsrname": "gaoshang",
"endTime": 0,
"goodsNum": 0,
"id": 99,
"modifyTime": 0,
"modifyUid": 0,
"sort": 7,
"startTime": 0,
"status": 2,
"type": 3,
"url": ""
},
{
"channelIds": "",
"content": "哈哈哈",
"createdTime": 1451290166,
"creatorUid": 2799,
"creatorUsrname": "gaoshang",
"endTime": 0,
"goodsNum": 4,
"id": 97,
"modifyTime": 1451326921,
"modifyUid": 100019,
"modifyUsrname": "zhipeng.wei",
"sort": 4,
"startTime": 0,
"status": 2,
"type": 2,
"url": ""
},
{
"channelIds": "",
"content": "呵呵哈哈",
"createdTime": 1451290085,
"creatorUid": 2799,
"creatorUsrname": "gaoshang",
"endTime": 1451577600,
"goodsNum": 0,
"id": 96,
"modifyTime": 0,
"modifyUid": 0,
"sort": 0,
"startTime": 1451232000,
"status": 2,
"type": 1,
"url": ""
}
],
"page": 1,
"size": 3,
"total": 3,
"totalPage": 1
},
"md5": "01acb7689ad5d33bb49613d9d3a4cbb1",
"message": "查询搜索词列表"
}
```
## 新增热搜索词
> 接口名:`searchWords/addSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|type|int|3|搜索词类型:3 热搜索词 |
|content|String|内容实得分|内容|
|sort|int|3|排序 |
|channelIds|String|1,2,3|频道类型 多个用逗号隔开 默认搜索词专用|
|url|String|https://pandao.github.io/editor.md/examples/simple.html|链接|
---------------------
### 返回
``` json
请求样例:
{
"channelIds": "2,3",
"content": "2342",
"creatorUid": 3,
"creatorUsrname": "zhangsan",
"modifyUid": 3,
"modifyUsrname": "zhangsan",
"type": 3,
"url": "https://pandao.github.io/editor.md/examples/simple.html"
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "添加成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "频道不能为空"
}
```
## 修改热搜索词
> 接口名:`searchWords/updateSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|主键 |
|type|int|3|搜索词类型:3 热搜索词 |
|sort|int|3|排序 |
|content|String|内容实得分|内容|
|channelIds|String|1,2,3|频道类型 多个用逗号隔开 默认搜索词专用|
|url|String|https://pandao.github.io/editor.md/examples/simple.html|链接|
|status|int|1|状态 2 开启 1 禁用|
---------------------
### 样例
``` json
请求样例:
{
"channelIds": "2,3",
"content": "2342",
"modifyUid": 3,
"modifyUsrname": "zhangsan",
"type": 3,
"sort":23,
"status": 1,
"id": 111,
"url": "https://pandao.github.io/editor.md/examples/simple.html"
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "修改成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "内容不能为空"
}
```
## 查询热搜索词
> 接口名: `/searchWords/querySearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|50|每页条数|
|type|int|3|搜索词类型:3 搜索词 必填|
|channelIds|String|3|频道类型|
|content|String|内容实得分|内容|
|status|int|1|状态 2 开启 1 禁用|
---------------------------
### 返回
```json
请求
{
"page":1,
"size":3,
"content":"哈哈",
"type":3,
"channelIds":1
}
返回:
同默认搜索词
```
## 新增同义词
> 接口名:`searchWords/addSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|type|int|4|搜索词类型:4 同义词 |
|content|String|内容巴拉|内容|
---------------------
### 返回
``` json
请求样例:
{
"content": "2342",
"creatorUid": 3,
"creatorUsrname": "zhangsan",
"type": 3
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "添加成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "频道不能为空"
}
```
## 修改同义词
> 接口名:`searchWords/updateSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|主键 |
|type|int|4|搜索词类型:4 同义词 |
|content|String|内容巴拉|内容|
|status|int|1|状态 2 开启 1 禁用|
---------------------
### 样例
``` json
请求样例:
{
"content": "2342",
"modifyUid": 3,
"modifyUsrname": "zhangsan",
"type": 4,
"status": 1,
"id": 111
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "修改成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "内容不能为空"
}
```
## 查询同义词
> 接口名: `/searchWords/querySearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|50|每页条数|
|type|int|4|搜索词类型:4 同义词 |
|content|String|内容巴拉|内容|
|status|int|1|状态 2 开启 1 禁用|
---------------------------
### 返回
```json
请求
{
"page":1,
"size":3,
"content":"哈哈",
"type":3
}
返回:
同默认搜索词
```
## 新增停用词
> 接口名:`searchWords/addSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|type|int|5|搜索词类型:5 停用词 |
|content|String|内容巴拉|内容|
---------------------
### 返回
``` json
请求样例:
{
"content": "2342",
"creatorUid": 3,
"creatorUsrname": "zhangsan",
"type": 3
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "添加成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "频道不能为空"
}
```
## 修改停用词
> 接口名:`searchWords/updateSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|主键 |
|type|int|5|搜索词类型:5 停用词 |
|content|String|内容巴拉|内容|
|status|int|1|状态 2 开启 1 禁用|
---------------------
### 样例
``` json
请求样例:
{
"content": "2342",
"modifyUid": 3,
"modifyUsrname": "zhangsan",
"type": 4,
"status": 1,
"id": 111
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "修改成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "内容不能为空"
}
```
## 查询停用词
> 接口名: `/searchWords/querySearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|50|每页条数|
|type|int|5|搜索词类型:5 停用词 |
|content|String|内容巴拉|内容|
|status|int|1|状态 2 开启 1 禁用|
---------------------------
### 返回
```json
请求
{
"page":1,
"size":3,
"content":"哈哈",
"type":3
}
返回:
同默认搜索词
```
## 查询频道列表
> 接口名: `/salesCategory/queryChannelList`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|parentId|int|0| 0是最上层父id 默认为0 |
---------------------------
### 返回
```json
请求
{
}
返回:
{
"code": 200,
"data": [
{
"categoryCode": "1,0,0,0",
"categoryId": 1,
"categoryName": "男生",
"createTime": 1441117726,
"icon": "",
"levelNumber": 1,
"orderBy": 0,
"parentId": 0,
"relationParameter": "114,293,116,117,115,119,124,122,131,129,346,133,348,147,149,148,151,231,152,153,196,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,164,317,295,321,311,357,359,320,195,197,413,130,258,173,227,125,118,121,123,263,260,264,261,352",
"relationUrl": "",
"state": 1
},
{
"categoryCode": "2,0,0,0",
"categoryId": 2,
"categoryName": "女生",
"createTime": 1441117737,
"icon": "",
"levelNumber": 1,
"orderBy": 0,
"parentId": 0,
"relationParameter": "227,173,125,258,121,123,119,124,118,348,122,115,117,346,114,293,131,133,186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,320,164,317,295,321,147,149,148,151,231,311,364,357,359,116,129,134,135,413,152,153,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,196,197,263",
"relationUrl": "",
"state": 1
},
{
"categoryCode": "3,0,0,0",
"categoryId": 3,
"categoryName": "潮童",
"createTime": 1441117746,
"icon": "",
"levelNumber": 1,
"orderBy": 0,
"parentId": 0,
"relationParameter": "407,405,403,397,374,389,385,377,381,378,379,383,393,395,376,375,373,431,433,449",
"relationUrl": "",
"state": 1
},
{
"categoryCode": "4,0,0,0",
"categoryId": 4,
"categoryName": "创意家居",
"createTime": 1441117756,
"icon": "",
"levelNumber": 1,
"orderBy": 0,
"parentId": 0,
"relationParameter": "285,113,171,185,200,211,212,216,313,398,267,268,269,270,271,272,273,274,275,276,277,332,333,353,281,282,283,284,292,304,110,111,112,184,260,261,262,263,264,265,352,355,302,343,344,399",
"relationUrl": "",
"state": 1
}
],
"md5": "c9e7bedc3718040c3274fd40ea1140f2",
"message": "查询频道分类列表列表"
}
```
# 搜索词管理
---------------------
## 新增默认搜索词
> 接口名:`searchWords/addSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|type|int|1|搜索词类型:1默认搜索词 |
|content|String|内容实得分|内容|
|channelIds|String|1,2,3|频道类型 多个用逗号隔开 默认搜索词专用|
|url|String|https://pandao.github.io/editor.md/examples/simple.html|链接|
|startTime|String|2016-1-1|开始时间|
|endTime|String|2016-3-1|结束时间|
---------------------
### 返回
``` json
请求样例:
{
"channelIds": "2,3",
"content": "2342",
"endTime": 1449504000,
"startTime": 1449504000,
"type": 1,
"url": "https://pandao.github.io/editor.md/examples/simple.html"
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "添加成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "频道不能为空"
}
```
## 修改默认搜索词
> 接口名:`searchWords/updateSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|主键 |
|type|int|1|搜索词类型:1默认搜索词 |
|channelIds|String|1,2,3|频道类型 多个用逗号隔开 默认搜索词专用|
|url|String|https://pandao.github.io/editor.md/examples/simple.html|链接|
|startTime|String|2016-1-1|开始时间|
|endTime|String|2016-3-1|结束时间|
|status|int|1|状态 2 开启 1 禁用|
---------------------
### 样例
``` json
请求样例:
{
"channelIds": "2,3",
"content": "2342",
"endTime": 1449504000,
"startTime": 1449504000,
"type": 1,
"status": 1,
"id": 111,
"url": "https://pandao.github.io/editor.md/examples/simple.html"
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "修改成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "内容不能为空"
}
```
## 查询默认搜索词
> 接口名: `/searchWords/querySearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|50|每页条数|
|type|int|1|搜索词类型:1默认搜索词 |
|channelIds|String|3|频道类型|
|startTime|String|2016-1-1|开始时间|
|endTime|String|2016-3-1|结束时间|
|status|int|1|状态 2 开启 1 禁用|
---------------------------
### 返回
```json
请求
{
"page":0,
"size":3,
"content":"哈哈",
"type":2,
"channelIds":1
}
返回:
{
"code": 200,
"data": {
"list": [
{
"channelIds": "",
"content": "呵呵哈哈",
"createdTime": 1451290193,
"creatorUid": 2799,
"creatorUsrname": "gaoshang",
"endTime": 0,
"goodsNum": 0,
"id": 99,
"modifyTime": 0,
"modifyUid": 0,
"sort": 7,
"startTime": 0,
"status": 2,
"type": 3,
"url": ""
},
{
"channelIds": "",
"content": "哈哈哈",
"createdTime": 1451290166,
"creatorUid": 2799,
"creatorUsrname": "gaoshang",
"endTime": 0,
"goodsNum": 4,
"id": 97,
"modifyTime": 1451326921,
"modifyUid": 100019,
"modifyUsrname": "zhipeng.wei",
"sort": 4,
"startTime": 0,
"status": 2,
"type": 2,
"url": ""
},
{
"channelIds": "",
"content": "呵呵哈哈",
"createdTime": 1451290085,
"creatorUid": 2799,
"creatorUsrname": "gaoshang",
"endTime": 1451577600,
"goodsNum": 0,
"id": 96,
"modifyTime": 0,
"modifyUid": 0,
"sort": 0,
"startTime": 1451232000,
"status": 2,
"type": 1,
"url": ""
}
],
"page": 1,
"size": 3,
"total": 3,
"totalPage": 1
},
"md5": "01acb7689ad5d33bb49613d9d3a4cbb1",
"message": "查询搜索词列表"
}
```
--------
## 新增下拉词
> 接口名:`searchWords/addSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|type|int|2|搜索词类型:2默认搜索词 |
|content|String|内容实得分|内容|
|goodsNum|int|4|商品数|
|sort|int|12|排序|
---------------------
### 返回
``` json
请求样例:
{
"content": "2342",
"creatorUid": 3,
"creatorUsrname": "zhangsan",
"goodsNum": 1,
"sort": "32"
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "添加成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "频道不能为空"
}
```
## 修改下拉词
> 接口名:`searchWords/updateSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|主键 |
|type|int|2|搜索词类型:2 下拉词 |
|goodsNum|int|4|商品数|
|sort|int|12|排序|
|status|int|1|状态 2 开启 1 禁用|
---------------------
### 样例
``` json
请求样例:
{
"content": "2342",
"endTime": 1449504000,
"modifyUid": 3,
"modifyUsrname": "zhangsan",
"type":2,
"status": 1,
"id": 111,
"goodsNum": 3,
"sort": 3
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "修改成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "内容不能为空"
}
```
## 查询下拉词
> 接口名: `/searchWords/querySearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|10|每页条数|
|type|int|2|搜索词类型:2 下拉词 |
|content|String|阿迪| 内容|
|status|int|1|状态 2 开启 1 禁用|
---------------------------
### 返回
```json
请求
{
"page":0,
"size":3,
"content":"哈哈",
"type":2,
"status":1
}
返回:
{
"code": 200,
"data": {
"list": [
{
"channelIds": "",
"content": "呵呵哈哈",
"createdTime": 1451290193,
"creatorUid": 2799,
"creatorUsrname": "gaoshang",
"endTime": 0,
"goodsNum": 0,
"id": 99,
"modifyTime": 0,
"modifyUid": 0,
"sort": 7,
"startTime": 0,
"status": 2,
"type": 3,
"url": ""
},
{
"channelIds": "",
"content": "哈哈哈",
"createdTime": 1451290166,
"creatorUid": 2799,
"creatorUsrname": "gaoshang",
"endTime": 0,
"goodsNum": 4,
"id": 97,
"modifyTime": 1451326921,
"modifyUid": 100019,
"modifyUsrname": "zhipeng.wei",
"sort": 4,
"startTime": 0,
"status": 2,
"type": 2,
"url": ""
},
{
"channelIds": "",
"content": "呵呵哈哈",
"createdTime": 1451290085,
"creatorUid": 2799,
"creatorUsrname": "gaoshang",
"endTime": 1451577600,
"goodsNum": 0,
"id": 96,
"modifyTime": 0,
"modifyUid": 0,
"sort": 0,
"startTime": 1451232000,
"status": 2,
"type": 1,
"url": ""
}
],
"page": 1,
"size": 3,
"total": 3,
"totalPage": 1
},
"md5": "01acb7689ad5d33bb49613d9d3a4cbb1",
"message": "查询搜索词列表"
}
```
## 新增热搜索词
> 接口名:`searchWords/addSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|type|int|3|搜索词类型:3 热搜索词 |
|content|String|内容实得分|内容|
|sort|int|3|排序 |
|channelIds|String|1,2,3|频道类型 多个用逗号隔开 默认搜索词专用|
|url|String|https://pandao.github.io/editor.md/examples/simple.html|链接|
---------------------
### 返回
``` json
请求样例:
{
"channelIds": "2,3",
"content": "2342",
"creatorUid": 3,
"creatorUsrname": "zhangsan",
"modifyUid": 3,
"modifyUsrname": "zhangsan",
"type": 3,
"url": "https://pandao.github.io/editor.md/examples/simple.html"
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "添加成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "频道不能为空"
}
```
## 修改热搜索词
> 接口名:`searchWords/updateSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|主键 |
|type|int|3|搜索词类型:3 热搜索词 |
|sort|int|3|排序 |
|content|String|内容实得分|内容|
|channelIds|String|1,2,3|频道类型 多个用逗号隔开 默认搜索词专用|
|url|String|https://pandao.github.io/editor.md/examples/simple.html|链接|
|status|int|1|状态 2 开启 1 禁用|
---------------------
### 样例
``` json
请求样例:
{
"channelIds": "2,3",
"content": "2342",
"modifyUid": 3,
"modifyUsrname": "zhangsan",
"type": 3,
"sort":23,
"status": 1,
"id": 111,
"url": "https://pandao.github.io/editor.md/examples/simple.html"
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "修改成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "内容不能为空"
}
```
## 查询热搜索词
> 接口名: `/searchWords/querySearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|50|每页条数|
|type|int|3|搜索词类型:3 搜索词 必填|
|channelIds|String|3|频道类型|
|content|String|内容实得分|内容|
|status|int|1|状态 2 开启 1 禁用|
---------------------------
### 返回
```json
请求
{
"page":1,
"size":3,
"content":"哈哈",
"type":3,
"channelIds":1
}
返回:
同默认搜索词
```
## 新增同义词
> 接口名:`searchWords/addSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|type|int|4|搜索词类型:4 同义词 |
|content|String|内容巴拉|内容|
---------------------
### 返回
``` json
请求样例:
{
"content": "2342",
"creatorUid": 3,
"creatorUsrname": "zhangsan",
"type": 3
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "添加成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "频道不能为空"
}
```
## 修改同义词
> 接口名:`searchWords/updateSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|主键 |
|type|int|4|搜索词类型:4 同义词 |
|content|String|内容巴拉|内容|
|status|int|1|状态 2 开启 1 禁用|
---------------------
### 样例
``` json
请求样例:
{
"content": "2342",
"modifyUid": 3,
"modifyUsrname": "zhangsan",
"type": 4,
"status": 1,
"id": 111
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "修改成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "内容不能为空"
}
```
## 查询同义词
> 接口名: `/searchWords/querySearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|50|每页条数|
|type|int|4|搜索词类型:4 同义词 |
|content|String|内容巴拉|内容|
|status|int|1|状态 2 开启 1 禁用|
---------------------------
### 返回
```json
请求
{
"page":1,
"size":3,
"content":"哈哈",
"type":3
}
返回:
同默认搜索词
```
## 新增停用词
> 接口名:`searchWords/addSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|type|int|5|搜索词类型:5 停用词 |
|content|String|内容巴拉|内容|
---------------------
### 返回
``` json
请求样例:
{
"content": "2342",
"creatorUid": 3,
"creatorUsrname": "zhangsan",
"type": 3
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "添加成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "频道不能为空"
}
```
## 修改停用词
> 接口名:`searchWords/updateSearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|主键 |
|type|int|5|搜索词类型:5 停用词 |
|content|String|内容巴拉|内容|
|status|int|1|状态 2 开启 1 禁用|
---------------------
### 样例
``` json
请求样例:
{
"content": "2342",
"modifyUid": 3,
"modifyUsrname": "zhangsan",
"type": 4,
"status": 1,
"id": 111
}
正常返回:
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "修改成功"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "内容不能为空"
}
```
## 查询停用词
> 接口名: `/searchWords/querySearchWords`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|50|每页条数|
|type|int|5|搜索词类型:5 停用词 |
|content|String|内容巴拉|内容|
|status|int|1|状态 2 开启 1 禁用|
---------------------------
### 返回
```json
请求
{
"page":1,
"size":3,
"content":"哈哈",
"type":3
}
返回:
同默认搜索词
```
## 查询频道列表
> 接口名: `/salesCategory/queryChannelList`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|parentId|int|0| 0是最上层父id 默认为0 |
---------------------------
### 返回
```json
请求
{
}
返回:
{
"code": 200,
"data": [
{
"categoryCode": "1,0,0,0",
"categoryId": 1,
"categoryName": "男生",
"createTime": 1441117726,
"icon": "",
"levelNumber": 1,
"orderBy": 0,
"parentId": 0,
"relationParameter": "114,293,116,117,115,119,124,122,131,129,346,133,348,147,149,148,151,231,152,153,196,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,164,317,295,321,311,357,359,320,195,197,413,130,258,173,227,125,118,121,123,263,260,264,261,352",
"relationUrl": "",
"state": 1
},
{
"categoryCode": "2,0,0,0",
"categoryId": 2,
"categoryName": "女生",
"createTime": 1441117737,
"icon": "",
"levelNumber": 1,
"orderBy": 0,
"parentId": 0,
"relationParameter": "227,173,125,258,121,123,119,124,118,348,122,115,117,346,114,293,131,133,186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,320,164,317,295,321,147,149,148,151,231,311,364,357,359,116,129,134,135,413,152,153,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,196,197,263",
"relationUrl": "",
"state": 1
},
{
"categoryCode": "3,0,0,0",
"categoryId": 3,
"categoryName": "潮童",
"createTime": 1441117746,
"icon": "",
"levelNumber": 1,
"orderBy": 0,
"parentId": 0,
"relationParameter": "407,405,403,397,374,389,385,377,381,378,379,383,393,395,376,375,373,431,433,449",
"relationUrl": "",
"state": 1
},
{
"categoryCode": "4,0,0,0",
"categoryId": 4,
"categoryName": "创意家居",
"createTime": 1441117756,
"icon": "",
"levelNumber": 1,
"orderBy": 0,
"parentId": 0,
"relationParameter": "285,113,171,185,200,211,212,216,313,398,267,268,269,270,271,272,273,274,275,276,277,332,333,353,281,282,283,284,292,304,110,111,112,184,260,261,262,263,264,265,352,355,302,343,344,399",
"relationUrl": "",
"state": 1
}
],
"md5": "c9e7bedc3718040c3274fd40ea1140f2",
"message": "查询频道分类列表列表"
}
```
... ...