wolf2w_cloud-master

狼性天下


回答

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>问题详情下查询单个回答接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost/9000/questions/comments?id={}</code> <h5>请求方式</h5></li> <li>GET</li> </ul> <h5>参数</h5> <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;">id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">Long</td> <td>回答的id</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> { "code": 200, "msg":"success", "data":{ "content":"适合春季游的地方太多了。看自己喜好吧", "thumbsupnum":66, "starnum":11, "state":0, "questionId":2, "userId":5, "UserInfo":[{"nickname":"小李","phone":"13045687921","email":null,"gender":1,"level":0,"city":"四川","headImgUrl":"https://p1-q.mafengwo.net/s9/M00/AF/F6/wKgBs1aVL52ASPBKAAKedkjQxwo58.jpeg?imageMogr2%2Fthumbnail%2F%2190x90r%2Fgravity%2FCenter%2Fcrop%2F%2190x90%2Fquality%2F90","info":"蔷薇","state":0}], "optimum":false, "createTime":2023-01-12 15:26:22, updateTime:null, } }</code></pre> <h5>简要描述</h5> <ul> <li>问题详情下分页查询接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost/9000/questions/comments/query?currentPage=1&amp;pageSize=10&amp;keyword=?&amp;qid=2</code> <h5>请求方式</h5></li> <li>GET</li> </ul> <h5>参数</h5> <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;">QuestionsCommentQo</td> <td style="text-align: left;">是</td> <td style="text-align: left;">查询对象</td> <td>查询对象</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> { "code": 200, "msg":"success", "data":{ "records":[{ "content":"适合春季游的地方太多了。看自己喜好吧", "thumbsupnum":66, "starnum":11, "state":0, "questionId":2, "userId":5, "UserInfo":[{"nickname":"小李","phone":"13045687921","email":null,"gender":1,"level":0,"city":"四川","headImgUrl":"https://p1-q.mafengwo.net/s9/M00/AF/F6/wKgBs1aVL52ASPBKAAKedkjQxwo58.jpeg?imageMogr2%2Fthumbnail%2F%2190x90r%2Fgravity%2FCenter%2Fcrop%2F%2190x90%2Fquality%2F90","info":"蔷薇","state":0}], "optimum":false, "createTime":2023-01-12 15:26:22, updateTime:null, },{ "content":"适合春季游的地方太多了。看自己喜好吧", "thumbsupnum":66, "starnum":11, "state":0, "questionId":3, "userId":5, "UserInfo":[{"nickname":"小王","phone":"18908082855","email":null,"gender":2,"level":0,"city":"四川","headImgUrl":"https://p1-q.mafengwo.net/s9/M00/AF/F6/wKgBs1aVL52ASPBKAAKedkjQxwo58.jpeg?imageMogr2%2Fthumbnail%2F%2190x90r%2Fgravity%2FCenter%2Fcrop%2F%2190x90%2Fquality%2F90","info":"玫瑰","state":0}], "optimum":false, "createTime":2023-01-12 15:26:22, updateTime:null, }], "total": 2, "size": 10, "current": 1, "pages":1 } }</code></pre> <h5>简要描述</h5> <ul> <li>问题详情下回答接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost/9000/questions/comments/save</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>参数</h5> <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;">QuestionsComment</td> <td style="text-align: left;">是</td> <td style="text-align: left;">对象</td> <td>回答对象</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> { "code": 200, "msg":"success" }</code></pre> <h5>备注</h5> <ul> <li>用户未登录或登录失效, 返回错误代码情况示例</li> </ul> <pre><code> {     "timestamp": "2023-01-12T10:55:22.383+00:00",     "status": 500,     "error": "Internal Server Error",     "message": "",     "path": "/questions/comments/save" }</code></pre> <h5>简要描述</h5> <ul> <li>问题详情下文件上传接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost/9000/questions/comments/uploadImg</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>参数</h5> <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;">upload</td> <td style="text-align: left;">是</td> <td style="text-align: left;">对象</td> <td>上传的对象</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> { "code": 200, "msg":"success" }</code></pre> <h5>简要描述</h5> <ul> <li>问题详情点赞接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost/9000/questions/comments/thumb</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST</li> </ul> <h5>参数</h5> <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;">cid</td> <td style="text-align: left;">是</td> <td style="text-align: left;">String</td> <td>回答id</td> </tr> <tr> <td style="text-align: left;">request</td> <td style="text-align: left;">是</td> <td style="text-align: left;">HttpServletRequest</td> <td>请求对象</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> { "code": 200, "msg":"success" }</code></pre> <h5>备注</h5> <ul> <li>用户未登录或登录失效, 返回错误代码情况示例</li> </ul> <pre><code> {     "timestamp": "2023-01-13T011:50:45.369+00:00",     "status": 500,     "error": "Internal Server Error",     "message": "",     "path": "/questions/comments/thumb" }</code></pre> <h5>简要描述</h5> <ul> <li>问题详情收藏接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost/9000/questions/comments/starnum</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST</li> </ul> <h5>参数</h5> <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;">qid</td> <td style="text-align: left;">是</td> <td style="text-align: left;">String</td> <td>回答id</td> </tr> <tr> <td style="text-align: left;">request</td> <td style="text-align: left;">是</td> <td style="text-align: left;">HttpServletRequest</td> <td>请求对象</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> { "code": 200, "msg":"success" }</code></pre> <h5>备注</h5> <ul> <li>用户未登录或登录失效, 返回错误代码情况示例</li> </ul> <pre><code> {     "timestamp": "2023-01-13T16:49:32.258+00:00",     "status": 500,     "error": "Internal Server Error",     "message": "",     "path": "/questions/comments/starnum" }</code></pre>

页面列表

ITEM_HTML