twt-trade-platform

校园二手交易平台


获取商品评论列表

<p>[TOC]</p> <h2>简要描述</h2> <ul> <li>获取商品评论列表接口</li> </ul> <h2>请求路径</h2> <ul> <li><code>/admin/item/comment/list</code></li> </ul> <h2>请求方式</h2> <ul> <li>GET </li> </ul> <h2>请求头</h2> <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;">Authorization</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>JWT Token</td> </tr> </tbody> </table> <h2>请求参数</h2> <p>请求参数格式:application/json</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;">id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">long</td> <td>商品id</td> </tr> </tbody> </table> <h2>请求示例</h2> <pre><code>{     &amp;quot;id&amp;quot; : 1 }</code></pre> <h2>响应参数</h2> <p>响应参数格式:application/json</p> <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;">code</td> <td style="text-align: left;">int</td> <td>状态码</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">array</td> <td>返回数据</td> </tr> <tr> <td style="text-align: left;">message</td> <td style="text-align: left;">string</td> <td>返回信息</td> </tr> <tr> <td style="text-align: left;">data.id</td> <td style="text-align: left;">long</td> <td>评论id</td> </tr> <tr> <td style="text-align: left;">data.parent_id</td> <td style="text-align: left;">long</td> <td>回复的父评论id</td> </tr> <tr> <td style="text-align: left;">data.reply_id</td> <td style="text-align: left;">long</td> <td>回复的子评论id</td> </tr> <tr> <td style="text-align: left;">data.from_id</td> <td style="text-align: left;">long</td> <td>发布评论的用户id</td> </tr> <tr> <td style="text-align: left;">data.content</td> <td style="text-align: left;">string</td> <td>评论内容</td> </tr> <tr> <td style="text-align: left;">data.images</td> <td style="text-align: left;">array</td> <td>评论图片列表</td> </tr> <tr> <td style="text-align: left;">data.create_time</td> <td style="text-align: left;">LocalDateTime</td> <td>评论创建日期</td> </tr> </tbody> </table> <h2>响应示例</h2> <pre><code>{     &amp;quot;code&amp;quot;: 20041,     &amp;quot;data&amp;quot;: [         {             &amp;quot;id&amp;quot;: 1,             &amp;quot;parent_id&amp;quot;: null,             &amp;quot;reply_id&amp;quot;: null,             &amp;quot;from_id&amp;quot;: 4,             &amp;quot;content&amp;quot;: &amp;quot;这自行车用了几年了?看着这么旧,还九成新?&amp;quot;,             &amp;quot;images&amp;quot;: [                 &amp;quot;https://twt-trade-platform.oss-cn-beijing.aliyuncs.com/242fac3d-0fe2-4b66-9b04-94f339550433.jpg&amp;quot;,                 &amp;quot;https://twt-trade-platform.oss-cn-beijing.aliyuncs.com/3b17d698-6123-413e-a8ff-08e297d2d01e.jpg&amp;quot;             ],             &amp;quot;create_time&amp;quot;: &amp;quot;2025-03-02 15:41:23&amp;quot;         },         {             &amp;quot;id&amp;quot;: 2,             &amp;quot;parent_id&amp;quot;: 1,             &amp;quot;reply_id&amp;quot;: null,             &amp;quot;from_id&amp;quot;: 4,             &amp;quot;content&amp;quot;: &amp;quot;这自行车用了几年了?看着这么旧,还九成新?&amp;quot;,             &amp;quot;images&amp;quot;: [                 &amp;quot;https://twt-trade-platform.oss-cn-beijing.aliyuncs.com/242fac3d-0fe2-4b66-9b04-94f339550433.jpg&amp;quot;,                 &amp;quot;https://twt-trade-platform.oss-cn-beijing.aliyuncs.com/3b17d698-6123-413e-a8ff-08e297d2d01e.jpg&amp;quot;             ],             &amp;quot;create_time&amp;quot;: &amp;quot;2025-03-02 15:42:38&amp;quot;         },         {             &amp;quot;id&amp;quot;: 3,             &amp;quot;parent_id&amp;quot;: 1,             &amp;quot;reply_id&amp;quot;: 2,             &amp;quot;from_id&amp;quot;: 4,             &amp;quot;content&amp;quot;: &amp;quot;这自行车用了几年了?看着这么旧,还九成新?&amp;quot;,             &amp;quot;images&amp;quot;: [                 &amp;quot;https://twt-trade-platform.oss-cn-beijing.aliyuncs.com/242fac3d-0fe2-4b66-9b04-94f339550433.jpg&amp;quot;,                 &amp;quot;https://twt-trade-platform.oss-cn-beijing.aliyuncs.com/3b17d698-6123-413e-a8ff-08e297d2d01e.jpg&amp;quot;             ],             &amp;quot;create_time&amp;quot;: &amp;quot;2025-03-02 15:43:53&amp;quot;         },         {             &amp;quot;id&amp;quot;: 5,             &amp;quot;parent_id&amp;quot;: 1,             &amp;quot;reply_id&amp;quot;: 3,             &amp;quot;from_id&amp;quot;: 4,             &amp;quot;content&amp;quot;: &amp;quot;看着久而已,没怎么用过,擦亮一点和新的一样&amp;quot;,             &amp;quot;images&amp;quot;: [],             &amp;quot;create_time&amp;quot;: &amp;quot;2025-03-02 15:57:45&amp;quot;         },         {             &amp;quot;id&amp;quot;: 6,             &amp;quot;parent_id&amp;quot;: null,             &amp;quot;reply_id&amp;quot;: null,             &amp;quot;from_id&amp;quot;: 4,             &amp;quot;content&amp;quot;: &amp;quot;看着还可以&amp;quot;,             &amp;quot;images&amp;quot;: [],             &amp;quot;create_time&amp;quot;: &amp;quot;2025-03-02 16:00:03&amp;quot;         },         {             &amp;quot;id&amp;quot;: 7,             &amp;quot;parent_id&amp;quot;: 6,             &amp;quot;reply_id&amp;quot;: null,             &amp;quot;from_id&amp;quot;: 4,             &amp;quot;content&amp;quot;: &amp;quot;这都还可以???&amp;quot;,             &amp;quot;images&amp;quot;: [                 &amp;quot;https://twt-trade-platform.oss-cn-beijing.aliyuncs.com/3b17d698-6123-413e-a8ff-08e297d2d01e.jpg&amp;quot;             ],             &amp;quot;create_time&amp;quot;: &amp;quot;2025-03-02 16:01:02&amp;quot;         }     ],     &amp;quot;message&amp;quot;: &amp;quot;查询商品评论成功&amp;quot; }</code></pre> <h2>状态码</h2> <table> <thead> <tr> <th style="text-align: left;">状态码</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">20041</td> <td>查询成功</td> </tr> <tr> <td style="text-align: left;">20040</td> <td>查询错误</td> </tr> <tr> <td style="text-align: left;">30010</td> <td>格式错误</td> </tr> </tbody> </table> <h2>备注</h2> <ul> <li>更多返回状态码请看首页的状态码描述</li> </ul>

页面列表

ITEM_HTML