Authored by mali

接口文档

1 -# 添加颜色接口 1 +# 查询热销搜索词
2 2
3 -> 接口名: `/productColor/addProductColor/` 3 +> 接口名: `/searchWords/queryHotSearchTerms`
4 4
5 ### 入参 5 ### 入参
6 6
7 ------------------------- 7 -------------------------
8 |属性名称|类型|例子|说明|是否必填| 8 |属性名称|类型|例子|说明|是否必填|
9 |--------|----|----|----|--------| 9 |--------|----|----|----|--------|
10 -|colorName|string|X色|颜色名称|是|  
11 -|colorCode|string|FFFF|RGB code|是|  
12 -|colorValue|string|www.io.png|图片URL|是| 10 +|page|number|1|当前页|默认1|
  11 +|size|number|20|条数|默认10|
13 12
14 --------------------- 13 ---------------------
15 14
16 -### 返回 15 +### 返回 (只关注content字段)
17 16
18 ``` json 17 ``` json
19 { 18 {
20 - "code":200,  
21 - "message":"success" 19 + "code": 200,
  20 + "data": {
  21 + "list": [
  22 + {
  23 + "channelIds": "1,2",
  24 + "content": "hhhgg",
  25 + "creatorUid": 0,
  26 + "creatorUsrname": "wxtest1",
  27 + "id": 123,
  28 + "modifyUid": 0,
  29 + "modifyUsrname": "wxtest1",
  30 + "status": 2,
  31 + "type": 1,
  32 + "url": "hhh"
  33 + },
  34 + {
  35 + "channelIds": "1,2,3,4",
  36 + "content": "aaaa",
  37 + "creatorUid": 0,
  38 + "creatorUsrname": "wxtest1",
  39 + "id": 122,
  40 + "status": 2,
  41 + "type": 1,
  42 + "url": "aaaaa"
  43 + }
  44 + ],
  45 + "page": 1,
  46 + "size": 2,
  47 + "total": 18,
  48 + "totalPage": 9
  49 + },
  50 + "md5": "3ead7bfd94211a4352e0edfb9d5afbf8",
  51 + "message": "查询搜索词列表"
22 } 52 }
23 53
24 ``` 54 ```