多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
##查看所有订单 ~~~[api] post:/192.168.8.60:8011/index.php/index/order/orderList *string:token_session=默认值#访问接口必须传的session name#说明文字 <<< success { "code": 200, "msg": "success", "data": [ { "id": 1, "order_no": "20180109001", "car_no": "1", "user_name": "杨天宝", "tel": "18724775626", "course": 10, "time_length": 127, "status": 1, "start_date": "2019-01-09 16:23:23", "end_date": "2019-01-09 16:33:23", "total_info": "10.00元", "total_pay_info": "10.00元" }, { "id": 2, "order_no": "20180109002", "car_no": "1", "user_name": "杨天宝", "tel": "18724775626", "course": 10, "time_length": 127, "status": 1, "start_date": "2019-01-08 16:23:23", "end_date": "2019-01-08 16:33:23", "total_info": "10.00元", "total_pay_info": "10.00元" } ] } <<< error { "code": 10001, "msg": "应用尚未登陆", "data": "" } ~~~ | 字段名 |描述 | | --- | --- | | order_no | 订单编号 | | car_no| 车辆编号| | user_name| 用户名| | tel| 手机号| | course| 里程| | time_length| 行程时常| | status_info| 状态| | start_date| 开始时间| | end_date| 结束时间| | total_info| 订单金额| | total_pay_info| 实付金额| ## 查看某条订单详情 ~~~[api] get:/192.168.8.60:8011/index.php/index/order/getOrderInfo *string:token_session=默认值#访问 接口必带的token *int:id#订单id值 <<< success { "code": 200, "msg": "success", "data": { "id": 1, "order_no": "20180109001", "car_no": "1", "user_name": "杨天宝", "tel": "18724775626", "course": 10, "time_length": 127, "status": 1, "start_time": 1547022203, "end_time": 1547022803, "total": 1000, "total_pay": 1000, "start_date": "2019-01-09 16:23:23", "end_date": "2019-01-09 16:33:23", "total_info": "10.00元", "total_pay_info": "10.00元", "status_info": "正常" } } <<< error { "code": 20001, "msg": "参数错误", "data": "" } ~~~ ## 新增订单 ~~~[api] post:/192.168.8.60:8011/index.php/index/order/addorder *string:token_session=默认值#访问接口必带的session *user_name#用户名 *car_no#车辆编号 *tel#联系电话 *course#里程 *start_time#开始时间 *end_time#结束时间 *total#订单金额 *total_pay#实付金额 <<< success { "code": 200, "msg": "success", "data": "新增成功" } <<< error { "code": 200, "msg": "ERROR", "data": "请填写员工名" } ~~~ ## 编辑订单 ~~~[api] post:/192.168.8.60:8011/index.php/index/order/editorder *string:token_session=默认值#访问接口必带的session *user_name#用户名 *car_no#车辆编号 *tel#联系电话 *course#里程 *start_time#开始时间 *end_time#结束时间 *total#订单金额 *total_pay#实付金额 <<< success { "code": 200, "msg": "success", "data": "编辑成功" } <<< error { "code": 10001, "msg": "应用尚未登陆", "data": "" } ~~~