查询订单详情
开发中
苍穹外卖3.0-商家管理端8080
http://localhost:8080
苍穹外卖3.0-商家管理端8080
http://localhost:8080
GET
/user/order/orderDetail/{id}
C端-订单接口
责任人:波仔很疯狂
请求参数
Path 参数
id
string
订单id
示例值:
101
Header 参数
authentication
string
可选
默认值:
eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2OTU5MTg4NjksInVzZXJJZCI6Mn0.g_n-gEqouVU-Q0kekBSwGSBSYbsPAMStnzHhYwqbf0o
token
string
可选
默认值:
eyJhbGciOiJIUzI1NiJ9.eyJlbXBJZCI6MSwiZXhwIjoxNzAxOTQxNzQwfQ.XdIWK08eF7QaozVIEqg07FLWyAj-7bQSGWOdrnb92cY
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:8080/user/order/orderDetail/101' \
--header 'authentication: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2OTU5MTg4NjksInVzZXJJZCI6Mn0.g_n-gEqouVU-Q0kekBSwGSBSYbsPAMStnzHhYwqbf0o' \
--header 'token: eyJhbGciOiJIUzI1NiJ9.eyJlbXBJZCI6MSwiZXhwIjoxNzAxOTQxNzQwfQ.XdIWK08eF7QaozVIEqg07FLWyAj-7bQSGWOdrnb92cY'
返回响应
🟢200成功
application/json
Body
code
integer <int32>
可选
data
object
OrderVO
address
string
可选
addressBookId
integer <int64>
可选
amount
number
可选
cancelReason
string
可选
cancelTime
string <date-time>
可选
checkoutTime
string <date-time>
可选
consignee
string
可选
deliveryStatus
integer <int32>
可选
deliveryTime
string <date-time>
可选
estimatedDeliveryTime
string <date-time>
可选
id
integer <int64>
可选
number
string
可选
orderDetailList
array[object (OrderDetail) {9}]
可选
orderTime
string <date-time>
可选
packAmount
integer <int32>
可选
payMethod
integer <int32>
可选
payStatus
integer <int32>
可选
phone
string
可选
rejectionReason
string
可选
remark
string
可选
status
integer <int32>
可选
tablewareNumber
integer <int32>
可选
tablewareStatus
integer <int32>
可选
userId
integer <int64>
可选
userName
string
可选
msg
string
可选
示例
{
"code": 1,
"msg": "",
"data": {
"id": 4,
"number": "d74e05aa6fdb400ba0e66ac0970abf7e",
"status": 5,
"userId": 2,
"addressBookId": 2,
"orderTime": "2023-07-01 00:00:00",
"payMethod": 1,
"payStatus": 0,
"amount": 212,
"remark": "我要第一名",
"userName": "张冠希",
"phone": "13788882220",
"address": "金燕龙写字楼传智教育4层办公室",
"mealTime": "2023-09-04 14:28:10",
"consignee": "徐静",
"cancelReason": "订单超时,已取消",
"cancelTime": "2023-07-24 16:02:00",
"estimatedDeliveryTime": "2023-09-12 14:28:10",
"deliveryStatus": 1,
"deliveryTime": "2023-09-11 14:46:42",
"packAmount": 2,
"tablewareNumber": 0,
"tablewareStatus": 0,
"orderDetailList": [
{
"id": 11,
"name": "剁椒鱼头",
"orderId": 4,
"dishId": 61,
"number": 1,
"amount": 66,
"image": "https://sky-itcast.oss-cn-beijing.aliyuncs.com/13da832f-ef2c-484d-8370-5934a1045a06.png"
},
{
"id": 12,
"name": "东坡肘子",
"orderId": 4,
"dishId": 59,
"number": 1,
"amount": 138,
"image": "https://sky-itcast.oss-cn-beijing.aliyuncs.com/a80a4b8c-c93e-4f43-ac8a-856b0d5cc451.png"
}
],
"shopId": 1,
"deliveryFee": 6,
"waybillStatus": 4,
"courierTelephone": "13788889999",
"sex": "1",
"shopTelephone": "13900002222"
}
}

扫码加入黑马微信交流群
加入传智黑马训练营,月薪飞起不是梦

