获取商品评论列表
<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>{
&quot;id&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>{
&quot;code&quot;: 20041,
&quot;data&quot;: [
{
&quot;id&quot;: 1,
&quot;parent_id&quot;: null,
&quot;reply_id&quot;: null,
&quot;from_id&quot;: 4,
&quot;content&quot;: &quot;这自行车用了几年了?看着这么旧,还九成新?&quot;,
&quot;images&quot;: [
&quot;https://twt-trade-platform.oss-cn-beijing.aliyuncs.com/242fac3d-0fe2-4b66-9b04-94f339550433.jpg&quot;,
&quot;https://twt-trade-platform.oss-cn-beijing.aliyuncs.com/3b17d698-6123-413e-a8ff-08e297d2d01e.jpg&quot;
],
&quot;create_time&quot;: &quot;2025-03-02 15:41:23&quot;
},
{
&quot;id&quot;: 2,
&quot;parent_id&quot;: 1,
&quot;reply_id&quot;: null,
&quot;from_id&quot;: 4,
&quot;content&quot;: &quot;这自行车用了几年了?看着这么旧,还九成新?&quot;,
&quot;images&quot;: [
&quot;https://twt-trade-platform.oss-cn-beijing.aliyuncs.com/242fac3d-0fe2-4b66-9b04-94f339550433.jpg&quot;,
&quot;https://twt-trade-platform.oss-cn-beijing.aliyuncs.com/3b17d698-6123-413e-a8ff-08e297d2d01e.jpg&quot;
],
&quot;create_time&quot;: &quot;2025-03-02 15:42:38&quot;
},
{
&quot;id&quot;: 3,
&quot;parent_id&quot;: 1,
&quot;reply_id&quot;: 2,
&quot;from_id&quot;: 4,
&quot;content&quot;: &quot;这自行车用了几年了?看着这么旧,还九成新?&quot;,
&quot;images&quot;: [
&quot;https://twt-trade-platform.oss-cn-beijing.aliyuncs.com/242fac3d-0fe2-4b66-9b04-94f339550433.jpg&quot;,
&quot;https://twt-trade-platform.oss-cn-beijing.aliyuncs.com/3b17d698-6123-413e-a8ff-08e297d2d01e.jpg&quot;
],
&quot;create_time&quot;: &quot;2025-03-02 15:43:53&quot;
},
{
&quot;id&quot;: 5,
&quot;parent_id&quot;: 1,
&quot;reply_id&quot;: 3,
&quot;from_id&quot;: 4,
&quot;content&quot;: &quot;看着久而已,没怎么用过,擦亮一点和新的一样&quot;,
&quot;images&quot;: [],
&quot;create_time&quot;: &quot;2025-03-02 15:57:45&quot;
},
{
&quot;id&quot;: 6,
&quot;parent_id&quot;: null,
&quot;reply_id&quot;: null,
&quot;from_id&quot;: 4,
&quot;content&quot;: &quot;看着还可以&quot;,
&quot;images&quot;: [],
&quot;create_time&quot;: &quot;2025-03-02 16:00:03&quot;
},
{
&quot;id&quot;: 7,
&quot;parent_id&quot;: 6,
&quot;reply_id&quot;: null,
&quot;from_id&quot;: 4,
&quot;content&quot;: &quot;这都还可以???&quot;,
&quot;images&quot;: [
&quot;https://twt-trade-platform.oss-cn-beijing.aliyuncs.com/3b17d698-6123-413e-a8ff-08e297d2d01e.jpg&quot;
],
&quot;create_time&quot;: &quot;2025-03-02 16:01:02&quot;
}
],
&quot;message&quot;: &quot;查询商品评论成功&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>