爱莉希雅社区团购

11


创建订单

<p><strong>简要描述:</strong></p> <ul> <li>创建订单</li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>https://api-hmugo-web.itheima.net/api/public/v1/my/orders/create</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>请求头参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>Authorization</td> <td>是</td> <td>string</td> <td>用户登录成功获取的token值</td> </tr> </tbody> </table> <p><strong>请求体参数</strong>:</p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>order_price</td> <td>是</td> <td>string</td> <td>订单总价格</td> </tr> <tr> <td>consignee_addr</td> <td>是</td> <td>string</td> <td>收货地址</td> </tr> <tr> <td>goods</td> <td>是</td> <td>Array</td> <td>订单数组</td> </tr> </tbody> </table> <p><strong>goods字段说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>goods_id</td> <td>是</td> <td>number</td> <td>商品id</td> </tr> <tr> <td>goods_number</td> <td>是</td> <td>number</td> <td>购买的数量</td> </tr> <tr> <td>goods_price</td> <td>是</td> <td>number</td> <td>单价</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;error_code&amp;quot;: 0, &amp;quot;data&amp;quot;: { &amp;quot;uid&amp;quot;: &amp;quot;1&amp;quot;, &amp;quot;username&amp;quot;: &amp;quot;12154545&amp;quot;, &amp;quot;name&amp;quot;: &amp;quot;吴系挂&amp;quot;, &amp;quot;groupid&amp;quot;: 2 , &amp;quot;reg_time&amp;quot;: &amp;quot;1436864169&amp;quot;, &amp;quot;last_login_time&amp;quot;: &amp;quot;0&amp;quot;, } }</code></pre> <p><strong>返回参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>参数说明</th> </tr> </thead> <tbody> <tr> <td>order_id</td> <td>string</td> <td>订单唯一ID</td> </tr> <tr> <td>user_id</td> <td>string</td> <td>用户ID</td> </tr> <tr> <td>order_number</td> <td>string</td> <td>订单编号</td> </tr> <tr> <td>order_price</td> <td>number</td> <td>订单价格</td> </tr> <tr> <td>order_pay</td> <td>number</td> <td>订单支付方式</td> </tr> <tr> <td>consignee_addr</td> <td>string</td> <td>订单地址</td> </tr> <tr> <td>pay_status</td> <td>number</td> <td>订单支付状态</td> </tr> </tbody> </table>

页面列表

ITEM_HTML