ktn-go


添加评论

<p><strong>简要描述:</strong></p> <ul> <li>添加评论接口</li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>/comments/reply</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>tid</td> <td>是</td> <td>String</td> <td>文章ID</td> </tr> <tr> <td>content</td> <td>是</td> <td>String</td> <td>评论内容</td> </tr> <tr> <td>uid</td> <td>否</td> <td>String</td> <td>评论指定用户ID</td> </tr> <tr> <td>sid</td> <td>是</td> <td>String</td> <td>请求Sid</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { "status": '200', "data": { "status": "1", "isRead": "0", "isBest": "0", "_id": "5ca9d398203cb9968d683113", "tid": "5ca9cff1f49e0b9608fe219d", "content": "这是回复的内容,不错不错!!!!!!!!!!", "uid": "5ca954fd9722a78f39c48df9", "created": "2019-04-07 18:40:24", } }</code></pre> <p><strong>返回参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>_id</td> <td>String</td> <td>评论ID</td> </tr> <tr> <td>tid</td> <td>String</td> <td>文章ID</td> </tr> <tr> <td>cuid</td> <td>String</td> <td>评论用户ID</td> </tr> <tr> <td>content</td> <td>String</td> <td>回复内容</td> </tr> <tr> <td>created</td> <td>String</td> <td>发表时间</td> </tr> <tr> <td>hands</td> <td>Number</td> <td>点赞数量</td> </tr> <tr> <td>isShow</td> <td>String</td> <td>是否显示,0-否,1-是</td> </tr> <tr> <td>isRead</td> <td>String</td> <td>是否已读, 0-否, 1-是</td> </tr> <tr> <td>isBest</td> <td>String</td> <td>是否已采纳, 0-否,1-是</td> </tr> </tbody> </table> <p><strong>备注</strong></p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML