文档
测试

创建订单

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

请求参数

参数名
类型
描述
必填
shippingId
Integer
地址号
必填

响应参数

参数名
类型
描述
必填
status
Integer
状态码
必填
data
T
数据
必填
username
String
登录成功后的管理员用户名
必填
msg
String
状态信息
必填

成功的返回示例

{ "status": 200, "data": { "orderNo": 1582980735368, "payment": 14, "paymentType": 1, "postage": 0, "status": 10, "paymentTime": null, "sendTime": null, "endTime": null, "closeTime": null, "createTime": null, "orderItemVoList": [ { "orderNo": 1582980735368, "productId": 10005, "productName": "版本", "productImage": "5", "currentUnitPrice": 5, "quantity": 2, "totalPrice": 10, "createTime": null }, { "orderNo": 1582980735368, "productId": 10002, "productName": "订单是", "productImage": "2", "currentUnitPrice": 2, "quantity": 2, "totalPrice": 4, "createTime": null } ], "shippingId": 2, "shippingVo": { "receiverName": "zhangsan", "receiverPhone": "010", "receiverMobile": "18688888888", "receiverProvince": "天津", "receiverCity": "北京市", "receiverDistrict": null, "receiverAddress": "中关村", "receiverZip": "100000" }, "imageHost": "asss" } }

失败的返回示例

{ "status": 13, "msg": "用户未登录" } { "status": 5, "msg": "没有被选中的商品" }