文档
测试

订单下购

POST
/order/addOrders

接口描述

对购物车中打钩的选项生成购物订单

请求头

参数名
类型
描述
必填
token
string
必填

请求参数

参数名
类型
描述
必填
receiverId
Long
收货人id
必填

响应参数

参数名
类型
描述
必填
code
必填
msg
必填
data
必填

说明 / 示例

``` { "code": 1000, "msg": "操作成功", "data": { "orderId": 1245685530033262594, "orderNumber": "42a4e38d9e854b518d29721aa9873467", "paymentAmount": 13000, "receiverName": "小牧", "receiverMobile": "13465656565", "receiverProvince": "广东", "receiverCity": "揭阳", "receiverDistrict": "榕城", "receiverAddress": "进贤门", "orderItemVoList": [ { "goodsCartId": 1245685530050039810, "goodsId": 32132, "goodsName": "智能机器人", "smallImgPath": null, "currentPrice": 4000, "totalPrice": 8000, "quantity": 2 }, { "goodsCartId": 1245685530062622721, "goodsId": 54654, "goodsName": "毛巾", "smallImgPath": null, "currentPrice": 5000, "totalPrice": 5000, "quantity": 1 } ] } } ``` |orderId|orderNumber|paymentAmount|receiverName|receiverMobile|receiverProvince|receiverCity|receiverDistrict|receiverAddress|goodsCartId|goodsId|goodsName|smallImgPath|currentPrice|totalPrice|quantity| |-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-| |订单主键|订单编号(给用户看的)|支付金额|收货人名字|手机|省|市|县、区|详细地址|购物车主键|商品主键|商品名字|商品小图|单价|总价|数量|