Commit 07ec56986097ac14f16be11de1e42f8531a9bba0

Authored by 马亚鑫
1 parent 1b093b18

add

05.互动云/10.2 二级评论-删除评论.md 0 → 100644
  1 +/*
  2 + Title: 10.2 删除评论
  3 + Sort: 102
  4 +*/
  5 +#### 请求方式: POST
  6 +-----
  7 +#### 返回格式: JSON
  8 +-----
  9 +#### 请求参数说明:
  10 +<table class="table table-bordered table-striped table-condensed">
  11 + <tr>
  12 + <th>参数</th>
  13 + <th>必选</th>
  14 + <th>类型</th>
  15 + <th>说明</th>
  16 + </tr>
  17 + <tr>
  18 + <td>appId</td>
  19 + <td>true</td>
  20 + <td>string</td>
  21 + <td>应用ID即</td>
  22 + </tr>
  23 + <tr>
  24 + <td>topicId</td>
  25 + <td>true</td>
  26 + <td>string</td>
  27 + <td>内容ID</td>
  28 + </tr>
  29 + <tr>
  30 + <td>commentId</td>
  31 + <td>true</td>
  32 + <td>string</td>
  33 + <td>评论ID</td>
  34 + </tr>
  35 + <tr>
  36 + <td>plat</td>
  37 + <td>true</td>
  38 + <td>string</td>
  39 + <td>客户端平台[i:IOS客户端,a:Android客户端]</td>
  40 + </tr>
  41 + <tr>
  42 + <td>sign</td>
  43 + <td>true</td>
  44 + <td>string</td>
  45 + <td>签名</td>
  46 + </tr>
  47 +</table>
  48 +-----
  49 +#### 返回格式说明:
  50 +```
  51 +{
  52 + errorCode:"0",
  53 + errorMsg:"删除评论成功"
  54 +}
  55 +{
  56 + errorCode:"xxx", //错误代码(非0)
  57 + errorMsg:"失败" //错误信息
  58 +}
... ...
05.互动云/10.3 二级评论-加载评论列表.md 0 → 100644
  1 +/*
  2 + Title: 10.3 加载评论列表
  3 + Sort: 103
  4 +*/
  5 +#### 请求方式: get
  6 +-----
  7 +#### 返回格式: JSON
  8 +-----
  9 +#### 请求参数说明:
  10 +<table class="table table-bordered table-striped table-condensed">
  11 + <tr>
  12 + <th>参数</th>
  13 + <th>必选</th>
  14 + <th>类型</th>
  15 + <th>说明</th>
  16 + </tr>
  17 + <tr>
  18 + <td>appId</td>
  19 + <td>true</td>
  20 + <td>string</td>
  21 + <td>应用ID即</td>
  22 + </tr>
  23 + <tr>
  24 + <td>topicId</td>
  25 + <td>true</td>
  26 + <td>string</td>
  27 + <td>话题ID</td>
  28 + </tr>
  29 + <tr>
  30 + <td>commentId</td>
  31 + <td>true</td>
  32 + <td>string</td>
  33 + <td>评论ID(首次读传0)</td>
  34 + </tr>
  35 + <tr>
  36 + <td>count</td>
  37 + <td>true</td>
  38 + <td>string</td>
  39 + <td>读取条数</td>
  40 + </tr>
  41 + <tr>
  42 + <td>plat</td>
  43 + <td>true</td>
  44 + <td>string</td>
  45 + <td>客户端平台[i:IOS客户端,a:Android客户端]</td>
  46 + </tr>
  47 + <tr>
  48 + <td>sign</td>
  49 + <td>true</td>
  50 + <td>string</td>
  51 + <td>签名</td>
  52 + </tr>
  53 +</table>
  54 +-----
  55 +#### 返回格式说明:
  56 +```
  57 +{
  58 + "errorCode": "0",
  59 + "errorMessage": "成功",
  60 + "data": {
  61 + "total_columns": "5",
  62 + "hasNext": "false",
  63 + "comments": [
  64 + {
  65 + "comment": {
  66 + "commentId": "18",
  67 + "topicId": "1111",
  68 + "uid": "10514228",
  69 + "nick": "mayaxin",
  70 + "facepath": "http://yweb0.cnliveimg.com/images/headImg/2019/1129/1575022593286.jpg",
  71 + "content": "话题的第5条评论",
  72 + "created_at": "2019-12-24 09:24",
  73 + "plat": "a"
  74 + },
  75 + "replyData": {
  76 + "replys": [
  77 + {
  78 + "replyId": "21",
  79 + "commentId": "18",
  80 + "fromSid": "10514228",
  81 + "fromNick": "mayaxin",
  82 + "fromFace": "http://yweb0.cnliveimg.com/images/headImg/2019/1129/1575022593286.jpg",
  83 + "toSid": "145680",
  84 + "toNick": "http://yweb0.cnliveimg.com/images/headImg/2019/1120/1574240741728.jpg",
  85 + "content": "回复第3条",
  86 + "created_at": "2019-12-24 09:26",
  87 + "plat": "a"
  88 + },
  89 + {
  90 + "replyId": "19",
  91 + "commentId": "18",
  92 + "fromSid": "145680",
  93 + "fromNick": "国亚奇",
  94 + "fromFace": "http://yweb0.cnliveimg.com/images/headImg/2019/1120/1574240741728.jpg",
  95 + "toSid": "10514228",
  96 + "toNick": "http://yweb0.cnliveimg.com/images/headImg/2019/1129/1575022593286.jpg",
  97 + "content": "回复第1条",
  98 + "created_at": "2019-12-24 09:26",
  99 + "plat": "a"
  100 + }
  101 + ],
  102 + "replyCount": "2"
  103 + }
  104 + },
  105 + {
  106 + "comment": {
  107 + "commentId": "17",
  108 + "topicId": "1111",
  109 + "uid": "145680",
  110 + "nick": "国亚奇",
  111 + "facepath": "http://yweb0.cnliveimg.com/images/headImg/2019/1120/1574240741728.jpg",
  112 + "content": "话题的第4条评论",
  113 + "created_at": "2019-12-24 09:24",
  114 + "plat": "a"
  115 + },
  116 + "replyData": {
  117 + "replyCount": "0"
  118 + }
  119 + },
  120 + {
  121 + "comment": {
  122 + "commentId": "16",
  123 + "topicId": "1111",
  124 + "uid": "145680",
  125 + "nick": "国亚奇",
  126 + "facepath": "http://yweb0.cnliveimg.com/images/headImg/2019/1120/1574240741728.jpg",
  127 + "content": "话题的第3条评论",
  128 + "created_at": "2019-12-24 09:24",
  129 + "plat": "a"
  130 + },
  131 + "replyData": {
  132 + "replyCount": "0"
  133 + }
  134 + },
  135 + {
  136 + "comment": {
  137 + "commentId": "15",
  138 + "topicId": "1111",
  139 + "uid": "10514228",
  140 + "nick": "mayaxin",
  141 + "facepath": "http://yweb0.cnliveimg.com/images/headImg/2019/1129/1575022593286.jpg",
  142 + "content": "话题的第2条评论",
  143 + "created_at": "2019-12-24 09:24",
  144 + "plat": "a"
  145 + },
  146 + "replyData": {
  147 + "replyCount": "0"
  148 + }
  149 + }
  150 + ]
  151 + }
  152 +}
  153 +{
  154 + errorCode:"xxx", //错误代码(非0)
  155 + errorMsg:"失败" //错误信息
  156 +}
... ...
05.互动云/10.5 二级评论-删除回复.md 0 → 100644
  1 +/*
  2 + Title: 10.5 删除回复
  3 + Sort: 105
  4 +*/
  5 +#### 请求方式: POST
  6 +-----
  7 +#### 返回格式: JSON
  8 +-----
  9 +#### 请求参数说明:
  10 +<table class="table table-bordered table-striped table-condensed">
  11 + <tr>
  12 + <th>参数</th>
  13 + <th>必选</th>
  14 + <th>类型</th>
  15 + <th>说明</th>
  16 + </tr>
  17 + <tr>
  18 + <td>appId</td>
  19 + <td>true</td>
  20 + <td>string</td>
  21 + <td>应用ID即</td>
  22 + </tr>
  23 + <tr>
  24 + <td>commentId</td>
  25 + <td>true</td>
  26 + <td>string</td>
  27 + <td>评论ID</td>
  28 + </tr>
  29 + <tr>
  30 + <td>replyId</td>
  31 + <td>true</td>
  32 + <td>string</td>
  33 + <td>回复ID</td>
  34 + </tr>
  35 + <tr>
  36 + <td>plat</td>
  37 + <td>true</td>
  38 + <td>string</td>
  39 + <td>客户端平台[i:IOS客户端,a:Android客户端]</td>
  40 + </tr>
  41 + <tr>
  42 + <td>sign</td>
  43 + <td>true</td>
  44 + <td>string</td>
  45 + <td>签名</td>
  46 + </tr>
  47 +</table>
  48 +-----
  49 +#### 返回格式说明:
  50 +```
  51 +{
  52 + errorCode:"0",
  53 + errorMsg:"删除回复成功"
  54 +}
  55 +{
  56 + errorCode:"xxx", //错误代码(非0)
  57 + errorMsg:"失败" //错误信息
  58 +}
... ...
05.互动云/10.6 二级评论-加载回复列表.md 0 → 100644
  1 +/*
  2 + Title: 10.6 加载回复列表
  3 + Sort: 106
  4 +*/
  5 +#### 请求方式: get
  6 +-----
  7 +#### 返回格式: JSON
  8 +-----
  9 +#### 请求参数说明:
  10 +<table class="table table-bordered table-striped table-condensed">
  11 + <tr>
  12 + <th>参数</th>
  13 + <th>必选</th>
  14 + <th>类型</th>
  15 + <th>说明</th>
  16 + </tr>
  17 + <tr>
  18 + <td>appId</td>
  19 + <td>true</td>
  20 + <td>string</td>
  21 + <td>应用ID即</td>
  22 + </tr>
  23 + <tr>
  24 + <td>commentId</td>
  25 + <td>true</td>
  26 + <td>string</td>
  27 + <td>评论ID</td>
  28 + </tr>
  29 + <tr>
  30 + <td>replyId</td>
  31 + <td>true</td>
  32 + <td>string</td>
  33 + <td>回复ID(首次读传0)</td>
  34 + </tr>
  35 + <tr>
  36 + <td>count</td>
  37 + <td>true</td>
  38 + <td>string</td>
  39 + <td>读取条数</td>
  40 + </tr>
  41 + <tr>
  42 + <td>plat</td>
  43 + <td>true</td>
  44 + <td>string</td>
  45 + <td>客户端平台[i:IOS客户端,a:Android客户端]</td>
  46 + </tr>
  47 + <tr>
  48 + <td>sign</td>
  49 + <td>true</td>
  50 + <td>string</td>
  51 + <td>签名</td>
  52 + </tr>
  53 +</table>
  54 +-----
  55 +#### 返回格式说明:
  56 +```
  57 +{
  58 + "errorCode": "0",
  59 + "errorMessage": "成功",
  60 + "data": {
  61 + "comment": {
  62 + "commentId": "18",
  63 + "topicId": "1111",
  64 + "uid": "10514228",
  65 + "nick": "mayaxin",
  66 + "facepath": "http://yweb0.cnliveimg.com/images/headImg/2019/1129/1575022593286.jpg",
  67 + "content": "话题的第5条评论",
  68 + "created_at": "2019-12-24 09:24",
  69 + "plat": "a"
  70 + },
  71 + "replyData": {
  72 + "replys": [
  73 + {
  74 + "replyId": "21",
  75 + "commentId": "18",
  76 + "fromSid": "10514228",
  77 + "fromNick": "mayaxin",
  78 + "fromFace": "http://yweb0.cnliveimg.com/images/headImg/2019/1129/1575022593286.jpg",
  79 + "toSid": "145680",
  80 + "toNick": "http://yweb0.cnliveimg.com/images/headImg/2019/1120/1574240741728.jpg",
  81 + "content": "回复第3条",
  82 + "created_at": "2019-12-24 09:26",
  83 + "plat": "a"
  84 + },
  85 + {
  86 + "replyId": "19",
  87 + "commentId": "18",
  88 + "fromSid": "145680",
  89 + "fromNick": "国亚奇",
  90 + "fromFace": "http://yweb0.cnliveimg.com/images/headImg/2019/1120/1574240741728.jpg",
  91 + "toSid": "10514228",
  92 + "toNick": "http://yweb0.cnliveimg.com/images/headImg/2019/1129/1575022593286.jpg",
  93 + "content": "回复第1条",
  94 + "created_at": "2019-12-24 09:26",
  95 + "plat": "a"
  96 + }
  97 + ],
  98 + "total_columns": "2",
  99 + "hasNext": "false"
  100 + }
  101 + }
  102 +}
  103 +{
  104 + errorCode:"xxx", //错误代码(非0)
  105 + errorMsg:"失败" //错误信息
  106 +}
... ...
05.互动云/9.5点赞-加载最新点赞.md 0 → 100644
  1 +/*
  2 + Title: 9.45 加载点赞
  3 +*/
  4 +#### URL: https://api.cnlive.com/open/api2/commentServices/services/supportBySpId/insert
  5 +-----
  6 +#### 请求方式: POST
  7 +-----
  8 +#### 返回格式: JSON
  9 +-----
  10 +#### 请求参数说明:
  11 +<table class="table table-bordered table-striped table-condensed">
  12 + <tr>
  13 + <th>参数</th>
  14 + <th>必选</th>
  15 + <th>类型</th>
  16 + <th>说明</th>
  17 + </tr>
  18 + <tr>
  19 + <td>appId</td>
  20 + <td>true</td>
  21 + <td>string</td>
  22 + <td>应用ID</td>
  23 + </tr>
  24 + <tr>
  25 + <td>topicId</td>
  26 + <td>true</td>
  27 + <td>string</td>
  28 + <td>主题ID</td>
  29 + </tr>
  30 + <tr>
  31 + <td>sid</td>
  32 + <td>true</td>
  33 + <td>string</td>
  34 + <td>点赞者id</td>
  35 + </tr>
  36 + <tr>
  37 + <td>count</td>
  38 + <td>true</td>
  39 + <td>string</td>
  40 + <td>读取点赞者条数</td>
  41 + </tr>
  42 + <tr>
  43 + <td>plat</td>
  44 + <td>true</td>
  45 + <td>string</td>
  46 + <td>i=IOS客户端,a=Android客户端</td>
  47 + </tr>
  48 + <tr>
  49 + <td>sign</td>
  50 + <td>true</td>
  51 + <td>string</td>
  52 + <td>签名</td>
  53 + </tr>
  54 +</table>
  55 +
  56 +-----
  57 +#### 返回格式说明:
  58 +```
  59 +{
  60 + "errorCode": "0",
  61 + "errorMessage": "成功",
  62 + "data": {
  63 + "total_columns": "2",
  64 + "praised": "true",
  65 + "supports": [
  66 + {
  67 + "sid": "10514228",
  68 + "nick": "mayaxin",
  69 + "face": "http://yweb0.cnliveimg.com/images/headImg/2019/1129/1575022593286.jpg"
  70 + },
  71 + {
  72 + "sid": "145680",
  73 + "nick": "国亚奇",
  74 + "face": "http://yweb0.cnliveimg.com/images/headImg/2019/1120/1574240741728.jpg"
  75 + }
  76 + ]
  77 + }
  78 +}
  79 +
  80 +```
0 81 \ No newline at end of file
... ...