订单预览页路由
<h5>接口描述</h5>
<ul>
<li>订单预览页模板</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/api/api/orders/preview</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET</li>
</ul>
<h5>请求头部</h5>
<p>|参数名|必选|类型|说明|
|:---- |:---|:----- |----- |
|Authorization |是 |string |JWT token|</p>
<h5>返回示例</h5>
<ul>
<li>状态码 200 请求成功</li>
</ul>
<pre><code>{
&quot;address&quot;: [
{
&quot;id&quot;: &quot;1&quot;,
&quot;name&quot;: &quot;Tom&quot;,
&quot;address&quot;: &quot;黑龙江&quot;,
&quot;phone&quot;: &quot;130xxx&quot;
},
{
&quot;id&quot;: &quot;2&quot;,
&quot;name&quot;: &quot;Tom&quot;,
&quot;address&quot;: &quot;黑龙江&quot;,
&quot;phone&quot;: &quot;130xxx&quot;
},
{
&quot;id&quot;: &quot;3&quot;,
&quot;name&quot;: &quot;Tom&quot;,
&quot;address&quot;: &quot;黑龙江&quot;,
&quot;phone&quot;: &quot;130xxx&quot;
}
],
&quot;carts&quot;: [
{
&quot;id&quot;: 7,
&quot;user_id&quot;: 1,
&quot;goods_id&quot;: 1,
&quot;num&quot;: 1,
&quot;is_checked&quot;: 1,
&quot;created_at&quot;: &quot;2024-04-06T09:51:32.000000Z&quot;,
&quot;updated_at&quot;: &quot;2024-04-06T09:51:32.000000Z&quot;,
&quot;goods&quot;: {
&quot;id&quot;: 1,
&quot;cover&quot;: &quot;https://picsum.photos/640/480&quot;,
&quot;title&quot;: &quot;Minus rerum eaque.&quot;,
&quot;cover_url&quot;: &quot;https://picsum.photos/640/480&quot;
}
},
{
&quot;id&quot;: 8,
&quot;user_id&quot;: 1,
&quot;goods_id&quot;: 9,
&quot;num&quot;: 1,
&quot;is_checked&quot;: 1,
&quot;created_at&quot;: &quot;2024-04-06T09:51:36.000000Z&quot;,
&quot;updated_at&quot;: &quot;2024-04-06T09:51:36.000000Z&quot;,
&quot;goods&quot;: {
&quot;id&quot;: 9,
&quot;cover&quot;: &quot;https://picsum.photos/640/480&quot;,
&quot;title&quot;: &quot;Occaecati qui.&quot;,
&quot;cover_url&quot;: &quot;https://picsum.photos/640/480&quot;
}
},
{
&quot;id&quot;: 9,
&quot;user_id&quot;: 1,
&quot;goods_id&quot;: 10,
&quot;num&quot;: 50,
&quot;is_checked&quot;: 1,
&quot;created_at&quot;: &quot;2024-04-06T10:03:17.000000Z&quot;,
&quot;updated_at&quot;: &quot;2024-04-06T10:10:40.000000Z&quot;,
&quot;goods&quot;: {
&quot;id&quot;: 10,
&quot;cover&quot;: &quot;https://picsum.photos/640/480&quot;,
&quot;title&quot;: &quot;Et ab hic vitae.&quot;,
&quot;cover_url&quot;: &quot;https://picsum.photos/640/480&quot;
}
}
]
}</code></pre>
<ul>
<li>
<p>状态码 200 成功</p>
</li>
<li>状态码 401</li>
</ul>