评论详情路由
<h5>接口描述</h5>
<ul>
<li>评论详情模板</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/api/admin/comments/{comment}</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET</li>
</ul>
<h5>请求头部</h5>
<p>|参数名|必选|类型|说明|
|:---- |:---|:----- |----- |
|Authorization |是 |string |JWT token|</p>
<h5>Query 请求参数</h5>
<p>|参数名|必选|类型|说明|
|:---- |:---|:----- |----- |
|include |是 |string |user,goods |</p>
<h5>返回示例</h5>
<ul>
<li>状态码 200 请求成功</li>
</ul>
<pre><code>{
&quot;data&quot;: {
&quot;id&quot;: 1,
&quot;user_id&quot;: 1,
&quot;goods_id&quot;: 1,
&quot;content&quot;: &quot;可以的&quot;,
&quot;rate&quot;: 1,
&quot;pics&quot;: [
&quot;a.png&quot;,
&quot;b.png&quot;
],
&quot;pics_url&quot;: [
&quot;https://laravel-shop-api-study.oss-cn-hongkong.aliyuncs.com/a.png&quot;,
&quot;https://laravel-shop-api-study.oss-cn-hongkong.aliyuncs.com/b.png&quot;
],
&quot;reply&quot;: null,
&quot;created_at&quot;: &quot;2024-03-31T03:40:51.000000Z&quot;,
&quot;updated_at&quot;: &quot;2024-03-31T03:40:52.000000Z&quot;,
&quot;user&quot;: {
&quot;data&quot;: {
&quot;id&quot;: 1,
&quot;name&quot;: &quot;a&quot;,
&quot;email&quot;: &quot;a@a.com&quot;,
&quot;created_at&quot;: null,
&quot;updated_at&quot;: &quot;2024-03-27T20:04:08.000000Z&quot;
}
},
&quot;goods&quot;: {
&quot;data&quot;: {
&quot;id&quot;: 1,
&quot;category_id&quot;: 7,
&quot;description&quot;: &quot;这是一台电脑&quot;,
&quot;price&quot;: 4999,
&quot;stock&quot;: 999,
&quot;cover&quot;: &quot;默认头像.jpg&quot;,
&quot;cover_url&quot;: &quot;https://laravel-shop-api-study.oss-cn-hongkong.aliyuncs.com/默认头像.jpg&quot;,
&quot;pics&quot;: [
&quot;a.png&quot;,
&quot;b.png&quot;
],
&quot;pics_url&quot;: [
&quot;https://laravel-shop-api-study.oss-cn-hongkong.aliyuncs.com/a.png&quot;,
&quot;https://laravel-shop-api-study.oss-cn-hongkong.aliyuncs.com/b.png&quot;
],
&quot;details&quot;: &quot;这是一台好用的电脑&quot;,
&quot;title&quot;: &quot;电脑111&quot;,
&quot;is_on&quot;: 1,
&quot;is_recommend&quot;: 1,
&quot;created_at&quot;: &quot;2024-03-30T09:18:17.000000Z&quot;,
&quot;updated_at&quot;: &quot;2024-03-30T17:43:05.000000Z&quot;
}
}
}
}</code></pre>
<ul>
<li>
<p>状态码 200 成功</p>
</li>
<li>状态码 401</li>
</ul>