发布社群评论
<p><strong>简要描述:</strong> </p>
<ul>
<li>发布评论</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>v1/group-comment/add-comment</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">group_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>评论的社群id</td>
</tr>
<tr>
<td style="text-align: left;">reply_user_id</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>被评论人id(一级首评不需要,二级后必需)</td>
</tr>
<tr>
<td style="text-align: left;">p_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>被评论的id【父级id (一级为0,二级以下为父级的id)】</td>
</tr>
<tr>
<td style="text-align: left;">content</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>评论内容</td>
</tr>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>评论类型 0评论 1回复</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"success": true,
"statusCode": 200,
"message": "OK",
"data": {
"id": 7,
"group_id": "116",
"user_id": 1,
"user_info": {
"user_id": 1,
"avatar": "http://resource.greenzeus.cn/user/avatar/511521Fqw218zi-i81yHSRcYbfslQTHiee03022021?imageMogr2/auto-orient",
"nickname": "杨志高",
"im_identifier": "cd709143422b8e35a9d5cdd0a6c606b7"
},
"reply_user_id": "",
"reply_user_info": {
"user_id": "",
"avatar": "",
"nickname": "",
"im_identifier": ""
},
"p_id": "0",
"p_comment_id": 7,
"content": "怎么进群?",
"state": null,
"fabulous": null,
"comment_time": "2021-08-03 20:56:29",
"moment_comment_freindtime": "刚刚",
"number": null,
"type": "0",
"level": null,
"is_forward": null,
"is_like": 0,
"content_type": null,
"total_fabulous": 0,
"total_number": 0,
"reply": []
}
}</code></pre>