文档
测试

前台创建订单

GET
http://localhost:8888/rlg/order/insert

接口描述

创建订单

请求参数

参数名
类型
描述
必填
shippingId
Integer
商品数量
必填
payment
Integer
商品价格
必填

响应参数

参数名
类型
描述
必填
code
Integer
接口请求状态码
必填
message
String
接口请求返回信息
可选
data
String
接口请求返回数据
可选

成功示例

{ "code": 200, "data": { "records": [ { "orderId": 1325985094623694848, "shippingVO": { "id": 2, "userId": 45, "receiverName": "zhangsan", "receiverPhone": "010", "receiverMobile": "18688888888", "receiverProvince": "天津", "receiverCity": "北京市", "receiverDistrict": null, "receiverAddress": "中关村", "receiverZip": "100000", "type": null }, "payment": 50, "status": 10, "itemVOS": [ { "productId": 10000, "productName": "苹果", "productImage": "https://img.yzcdn.cn/public_files/2017/10/24/e5a5a02309a41f9f5def56684808d9ae.jpeg", "quantity": 10, "totalPrice": 10 }, { "productId": 10003, "productName": "香蕉", "productImage": "3", "quantity": 10, "totalPrice": 30 }, { "productId": 10004, "productName": "方法是", "productImage": "4", "quantity": 10, "totalPrice": 40 } ] } ], "total": 0, "size": 5, "current": 1, "orders": [], "optimizeCountSql": true, "hitCount": false, "countId": null, "maxLimit": null, "searchCount": true, "pages": 0 } }