碳碳

碳中和


新增评论

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>用户注册接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>localhost:7004/comment/addComment</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>参数</h5> <p>{ &quot;sourceId&quot;:&quot;1&quot;, &quot;type&quot;:&quot;1&quot;, //类型 1 文章 2 讨论 &quot;commonId&quot;:&quot;3&quot;, //评论id 只有回复别人需要有值 &quot;level&quot;:&quot;2&quot;, //评论别人为2 评论文章1 &quot;userId&quot;:&quot;3&quot;, //评论人id &quot;toUser&quot;:&quot;2&quot;, //回复对象的id &quot;content&quot;:&quot;用户二你好啊&quot;, //评论内容 &quot;status&quot;:&quot;1&quot; }</p> <h5>返回示例</h5> <pre><code> { "status": 1, "msg": "操作成功", "code": "SUCCESS", "result": null }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">groupid</td> <td style="text-align: left;">int</td> <td>用户组id,1:超级管理员;2:普通用户</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML