name('login'); Route::get('test', 'TestController@test'); Route::middleware([ 'auth:api','singleLoginApi','limitAdminLoginApp','detection_of_merchant_status' ])->group(function () { // 登出 Route::post('auth/logout', 'Auth\LoginController@logout')->name('logout'); // 首页 Route::get('index', 'IndexController@index'); // 获取区域id name Route::post('getBikes', 'IndexController@getBikes');// 获取所有车辆 以及搜索 Route::post('searchBikes', 'IndexController@searchBikes');// 获取所有车辆 以及搜索 Route::get('getAreas', 'IndexController@getAreas');// 获取区域电子围栏 // 车辆 Route::get('bike/getBikeInfo', 'BikeController@getBikeInfoByBikeNo'); // 车辆基础信息 Route::post('bike/updateBikeInfo', 'BikeController@updateBikeInfo'); // 修改车辆信息 Route::post('bike/bikeLocation', 'BikeController@bikeLocation'); // 车辆位置信息 Route::post('bike/sweepCodeLocation', 'BikeController@sweepCodeLocation'); //扫码位置 Route::post('bike/latelyOrders', 'BikeController@latelyOrders'); //最近订单 Route::post('bike/locksInfo', 'BikeController@locksLog'); //最近订单 Route::get('bike/repairOptions', 'BikeController@repairOptions'); //可选报修项 Route::post('bike/bikeRepair', 'BikeController@bikeRepair'); //报修 Route::post('bike/bikeOnLineLog', 'BikeController@bikeOnLineLog'); //上线下线记录 Route::get('bike/list', 'BikeController@bikeList'); // 车辆列表 Route::get('bike/statistics', 'BikeController@bikeStatistics'); // 车辆统计 Route::post('bike/latelyOrderRent', 'BikeController@latelyOrderRent'); //最近日租订单订单 Route::put('bike/updateRemark/{id}','BikeController@updateRemark');// 修改车辆备注 Route::get('bike/getKey','BikeController@getKey'); //获取蓝牙 Route::get('bike/position', 'BikeController@bikePosition');// 车辆最新位置 // 车辆检测相关 Route::get('bike/login', 'BikeController@bikeLogin'); // 车辆上线 Route::get('bike/logout', 'BikeController@bikeLogout'); // 车辆下线 Route::get('bike/bikeBell', 'BikeController@bikeBell'); // 车辆响铃 Route::get('bike/openBikeLock', 'BikeController@openBikeLock'); // 车辆开锁 Route::get('bike/closeBikeLock', 'BikeController@closeBikeLock'); // 车辆关锁 Route::get('bike/openBatteryLock', 'BikeController@openBatteryLock'); // 车辆开电池锁 Route::get('bike/closeBatteryLock', 'BikeController@closeBatteryLock'); // 车辆关电池锁 Route::get('bike/rebootBox', 'BikeController@rebootBox'); // 车辆重启中控 Route::get('bike/newBikeLocation', 'BikeController@newBikeLocation'); // 车辆立即定位 Route::get('bike/newBikeBatteryMSG', 'BikeController@newBikeBatteryMSG'); // 车辆立即更新电池信息 Route::get('bike/repairInParking', 'BikeController@repairInParking'); // 设为在停车点 // 订单 Route::get('order/list', 'OrderController@orderList'); Route::get('order/detail', 'OrderController@orderDetail'); Route::get('order/orderStatistics', 'OrderController@orderStatistics'); Route::get('order/orderProfitStatistics', 'OrderController@orderProfitStatistics'); // 收益统计 Route::get('order/profitDetail', 'OrderController@profitDetail'); // 收益查询统计 Route::get('order/newOrderChart', 'OrderController@newOrderChart'); // 新增订单折线统计图 Route::get('order/profitChart', 'OrderController@profitChart'); // 新增订单折线统计图 Route::get('order/hourOrderNumber', 'OrderController@hourOrderNumber'); // 七日内新增订单折线统计图 // 日租订单 Route::get('orderRent/list', 'OrderRentController@orderRentList'); Route::get('orderRent/detail', 'OrderRentController@orderRentDetail'); // 用户 Route::get('user/list', 'UserController@userList'); Route::get('user/detail', 'UserController@userDetail'); Route::get('user/order', 'UserController@historicalOrder'); Route::get('user/userStatistics', 'UserController@userStatistics'); Route::get('user/orderRent', 'UserController@historicalOrderRent'); Route::put('user/updateRemark/{id}','UserController@updateRemark');// 修改车辆备注 Route::get('user/userRepaired','UserController@userRepaired');// 用户报修列表 Route::get('user/userRepaired/img','UserController@getRepairedImg');// 报修图片 Route::get('user/userRepaired/status','UserController@updateUserRepairedStatus');// 报修 Route::get('user/feedback','UserController@feedback');// 用户问题反馈 Route::get('user/feedback/read','UserController@isReadChange');// 用户问题反馈 // 个人中心 Route::post('personal/changePassword', 'WorkerController@changePassword'); Route::post('personal/verifyOldPassword', 'WorkerController@verifyOldPassword'); Route::post('personal/workerList', 'WorkerController@workerList'); // 工单 Route::get('work_order/list', 'WorkOrderController@workOrderList'); Route::get('work_order/workOrderDetail', 'WorkOrderController@workOrderDetail'); // 工单详情 Route::get('work_order/workOrderType', 'WorkOrderController@workOrderType'); // 工单类型 Route::get('work_order/myWorkOrderList', 'WorkOrderController@myWorkOrder'); Route::get('work_order/receive', 'WorkOrderController@receiveWorkOrder'); Route::get('work_order/over', 'WorkOrderController@updateWorkOrderStatus'); Route::post('work_order/upgrade', 'WorkOrderController@upgradeGroupWorkOrder'); Route::any('work_order/workOrderStatistics', 'WorkOrderController@workOrderStatistics'); Route::get('work_order/getWarningByWorkOrderId','WorkOrderController@getWarningByWorkOrderId'); //警报列表 //停车点 Route::resource('parking','ParkingController')->only(['index','update','show','store','destroy']); Route::post('parking/status','ParkingController@updateStatus'); Route::post('parking/UniqueParkingName','ParkingController@UniqueParkingName'); /*聚合统计接口 AggregateStatisticsController */ Route::get('statistics/statistics', 'AggregateStatisticsController@statistics'); //解绑 Route::post('control/addBike', 'Open\BikeController@addBike'); Route::post('control/unbindingBike', 'Open\BikeController@unbindingBike'); }); // 无需token 开放接口 Route::get('order/orderLocation', 'OrderController@orderLocation'); // 订单轨迹 Route::post('bike/getLocationByBikeNoAndTime', 'BikeController@getLocationByBikeNoAndTime'); // 车辆位置信息 Route::get('order/heatMap', 'OrderController@heatMap'); // 订单热力图 @todo Route::get('user/newUsersChart', 'UserController@newUsersChart'); // @todo // 厂测 Route::prefix('open/')->middleware(['openToken'])->group(function () { Route::get('test', 'Open\BikeController@test'); Route::post('addBike', 'Open\BikeController@addBike'); Route::post('unbindingBike', 'Open\BikeController@unbindingBike'); Route::get('bikeInfo', 'Open\BikeController@bikeInfo'); Route::get('bikeInfoByBikeNo', 'Open\BikeController@bikeInfoByBikeNo'); Route::get('getKey', 'Open\BikeController@getKey'); Route::post('bikeBell', 'Open\BikeController@bikeBell'); Route::post('bikeOpen', 'Open\BikeController@bikeOpen'); Route::post('bikeClose', 'Open\BikeController@bikeClose'); Route::post('bikeOpenBattery', 'Open\BikeController@bikeOpenBattery'); Route::post('bikeCloseBattery', 'Open\BikeController@bikeCloseBattery'); Route::post('rebootBox', 'Open\BikeController@rebootBox'); // 车辆重启中控 Route::post('newBikeLocation', 'Open\BikeController@newBikeLocation'); // 车辆立即定位 Route::post('newBikeBatteryMSG', 'Open\BikeController@newBikeBatteryMSG'); // 车辆立即更新电池信息 }); Route::post('open/login', 'Open\LoginController@login');