文档
测试

创建订单

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

请求参数

参数名
类型
描述
必填
shippingid
Integer
地址id
必填
payment
BigDecim
实际付款金额
必填

响应参数

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

成功的返回示例

{ "code": 200, "data": { "records": [ { "orderId": 1325980971186655232, "shippingVO": { "id": 8, "userId": 37, "receiverName": "黄佳颖", "receiverPhone": "1", "receiverMobile": "1", "receiverProvince": "1", "receiverCity": "1", "receiverDistrict": "1", "receiverAddress": "1", "receiverZip": "22", "type": null }, "payment": 89.00, "status": 10, "itemVOS": [ { "productId": 10003, "productName": "香蕉", "productImage": "3", "quantity": 65, "totalPrice": 195.00 }, { "productId": 10001, "productName": "啊啊是", "productImage": "1", "quantity": 10, "totalPrice": 10.00 }, { "productId": 10002, "productName": "订单是", "productImage": "2", "quantity": 10, "totalPrice": 20.00 } ] } ], "total": 1, "size": 10, "current": 1, "orders": [], "optimizeCountSql": true, "hitCount": false, "countId": null, "maxLimit": null, "searchCount": true, "pages": 1 } }