## 获取预约订单列表
~~~[api]
post:/server/order/index
int:status#订单状态,留空则显示全部状态
<<<
success
{
"code": 1,
"msg": "获取成功",
"count": 2,
"result": [
{
"id": 2,
"contact": "测试人",
"plate_number": "粤B-88888",
"phone": "15907511160",
"address": "广东省深圳市宝安区测试街道",
"status": 0,
"pay_status": 1,
"appoint_time": "2019-10-10 12:00:00",
"update_time": "2018-09-21 10:34:54",
"create_time": "2018-09-21 10:34:54"
},
{
"id": 1,
"contact": "测试人",
"plate_number": "粤B-88888",
"phone": "15907511160",
"address": "广东省深圳市宝安区测试街道",
"status": 0,
"pay_status": 1,
"appoint_time": "2019-10-10 12:00:00",
"update_time": "2018-09-21 10:34:54",
"create_time": "2018-09-21 10:34:54"
}
]
}
<<<
error
{
"code": 0,
"msg": "登录已失效,请重新登录"
}
<<<
error
{
"code": 0,
"msg": "请先登录"
}
~~~
### 字段列表
| 字段 | 描述 |
|---|---|
| count | 总订单数 |
| id | 订单ID |
| contact | 联系人 |
| plate_number | 车牌号码 |
| phone | 手机号码 |
| address | 取车地址 |
| status | 订单状态:0=待处理,1=处理中,2=已完成,9=已取消 |
| pay_status | 支付状态:0=未支付,1=已支付,2=已退款 |
| appoint_time | 预约时间 |
| update_time | 更新时间 |
| create_time | 创建时间 |