文档
测试

创建订单

POST
http://localhost:8080/portal/order/create.do

请求参数

参数名
类型
描述
必填
shippingId
Integer
必填

响应参数

参数名
类型
描述
必填
status
Integer
状态码
必填
data
T
数据
必填
msg
String
状态信息
必填

成功的返回示例

{ "status": 200, "data": { "orderNo": 1582977769384, "shippingId": 2, "payment": 250, "paymentType": 1, "postage": 0, "status": 10, "paymentTime": null, "sendTime": null, "endTime": null, "closeTime": null, "orderItemVOList": [ { "orderNo": 1582977769384, "productId": 10004, "productName": "方法是", "productImage": "4", "currentUnitPrice": 4, "quantity": 20, "totalPrice": 80 }, { "orderNo": 1582977769384, "productId": 10005, "productName": "版本", "productImage": "5", "currentUnitPrice": 5, "quantity": 4, "totalPrice": 20 }, { "orderNo": 1582977769384, "productId": 10002, "productName": "订单是", "productImage": "2", "currentUnitPrice": 2, "quantity": 75, "totalPrice": 150 } ], "shippingVO": { "receiverName": "zhangsan", "receiverPhone": "010", "receiverMobile": "18688888888", "receiverProvince": "天津", "receiverCity": "北京市", "receiverDistrict": null, "receiverAddress": "中关村", "receiverZip": "100000" }, "imageHost": "imageServer" } }

失败的返回示例1

{ "status": 100, "msg": "用户未登录" }

失败的返回示例2

{ "status": 1, "msg": "非法参数" }

失败的返回示例3

{ "status": 2, "msg": "购物车中没有更多商品" }

失败的返回示例4

{ "status": 3, "msg": "购物车中没有被选中的商品" }