Commit 38c2d0ea263924a1fc9f9bb0b4f05b600567c5a9
1 parent
a54e7116
add 加载评论forSp
Showing
1 changed file
with
89 additions
and
0 deletions
05.互动云/1.9评论-加载评论ForSp.md
0 → 100644
| 1 | +/* | ||
| 2 | + Title: 1.8 加载朋友圈评论和回复 | ||
| 3 | + Sort: 18 | ||
| 4 | +*/ | ||
| 5 | +#### URL: http://comment.cnlive.com/services/commentForHdBySpId/readAllComment | ||
| 6 | +----- | ||
| 7 | +#### 请求方式: POST | ||
| 8 | +----- | ||
| 9 | +#### 返回格式: JSON | ||
| 10 | +----- | ||
| 11 | +#### 请求参数说明: | ||
| 12 | +<table class="table table-bordered table-striped table-condensed"> | ||
| 13 | + <tr> | ||
| 14 | + <th>参数</th> | ||
| 15 | + <th>必选</th> | ||
| 16 | + <th>类型</th> | ||
| 17 | + <th>说明</th> | ||
| 18 | + </tr> | ||
| 19 | + <tr> | ||
| 20 | + <td>spId</td> | ||
| 21 | + <td>true</td> | ||
| 22 | + <td>string</td> | ||
| 23 | + <td>应用ID</td> | ||
| 24 | + </tr> | ||
| 25 | + <tr> | ||
| 26 | + <td>plat</td> | ||
| 27 | + <td>true</td> | ||
| 28 | + <td>string</td> | ||
| 29 | + <td>i=IOS客户端,a=Android客户端</td> | ||
| 30 | + </tr> | ||
| 31 | + <tr> | ||
| 32 | + <td>id</td> | ||
| 33 | + <td>true</td> | ||
| 34 | + <td>string</td> | ||
| 35 | + <td>主题ID</td> | ||
| 36 | + </tr> | ||
| 37 | + <tr> | ||
| 38 | + <td>page</td> | ||
| 39 | + <td>true</td> | ||
| 40 | + <td>int</td> | ||
| 41 | + <td>页码</td> | ||
| 42 | + </tr> | ||
| 43 | + <tr> | ||
| 44 | + <td>pageSize</td> | ||
| 45 | + <td>true</td> | ||
| 46 | + <td>int</td> | ||
| 47 | + <td>每页的条数</td> | ||
| 48 | + </tr> | ||
| 49 | + <tr> | ||
| 50 | + <td>sign</td> | ||
| 51 | + <td>true</td> | ||
| 52 | + <td>string</td> | ||
| 53 | + <td>签名</td> | ||
| 54 | + </tr> | ||
| 55 | +</table> | ||
| 56 | + | ||
| 57 | +----- | ||
| 58 | +#### 返回格式说明: | ||
| 59 | +``` | ||
| 60 | +{ | ||
| 61 | + "errorCode": "0", | ||
| 62 | + "errorMessage": "成功", | ||
| 63 | + "data": { | ||
| 64 | + "comments": [{ | ||
| 65 | + "id": "28", | ||
| 66 | + "pid": "10011", | ||
| 67 | + "uid": "145680", | ||
| 68 | + "nick": "sss", | ||
| 69 | + "facepath": "http://yweb0.cnliveimg.com/images/headImg/2018/0716/1531735082264.jpg", | ||
| 70 | + "content": "呦呦aa呦", | ||
| 71 | + "praise": "0", | ||
| 72 | + "created_at": "2018-12-20 15:45", | ||
| 73 | + "plat": "a" | ||
| 74 | + }, { | ||
| 75 | + "id": "21", | ||
| 76 | + "pid": "10011", | ||
| 77 | + "uid": "145680", | ||
| 78 | + "nick": "t", | ||
| 79 | + "facepath": "http://yweb0.cnliveimg.com/images/headImg/2018/0716/1531735082264.jpg", | ||
| 80 | + "content": "呦呦a呦", | ||
| 81 | + "praise": "0", | ||
| 82 | + "created_at": "2018-12-19 16:53", | ||
| 83 | + "plat": "a" | ||
| 84 | + }], | ||
| 85 | + "hasNext": "true" | ||
| 86 | + } | ||
| 87 | +} | ||
| 88 | + | ||
| 89 | +``` | ||
| 0 | \ No newline at end of file | 90 | \ No newline at end of file |