订单预览页路由
<h5>接口描述</h5>
<ul>
<li>订单预览页模板</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/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;: 2,
&quot;user_id&quot;: 1,
&quot;name&quot;: &quot;lihua&quot;,
&quot;city_id&quot;: 567,
&quot;address&quot;: &quot;HL超市二楼&quot;,
&quot;phone&quot;: &quot;13122541234&quot;,
&quot;is_default&quot;: 1,
&quot;created_at&quot;: &quot;2024-04-08T18:58:49.000000Z&quot;,
&quot;updated_at&quot;: &quot;2024-04-08T19:42:23.000000Z&quot;
},
{
&quot;id&quot;: 1,
&quot;user_id&quot;: 1,
&quot;name&quot;: &quot;lihua&quot;,
&quot;city_id&quot;: 42811,
&quot;address&quot;: &quot;HL超市二楼&quot;,
&quot;phone&quot;: &quot;13686541921&quot;,
&quot;is_default&quot;: 0,
&quot;created_at&quot;: &quot;2024-04-08T18:55:54.000000Z&quot;,
&quot;updated_at&quot;: &quot;2024-04-08T19:42:23.000000Z&quot;
}
],
&quot;carts&quot;: []
}</code></pre>
<ul>
<li>
<p>状态码 201 成功</p>
</li>
<li>状态码 422 参数错误</li>
</ul>