admin.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::middleware([
  4. 'auth:admin',
  5. 'admin.permission',
  6. ])->group(function () {
  7. Route::get('configs/{categorySlug}/values', 'ConfigController@getValuesByCategorySlug')
  8. ->name('configs.values.by_category_slug');
  9. });
  10. Route::middleware([
  11. 'auth:admin',
  12. 'admin.permission',
  13. 'detection_of_merchant_status'
  14. ])->group(function () {
  15. Route::post('auth/logout', 'Auth\LoginController@logout')->name('logout');
  16. Route::get('admin_user', 'AdminUserController@user')->name('admin_user');
  17. Route::get('admin_user/edit', 'AdminUserController@editUser')->name('admin_user.edit');
  18. Route::put('admin_user', 'AdminUserController@updateUser')->name('admin_user.update');
  19. // Route::get('admin-merchant/{admin_merchants}/edit','AdminUserMerchantController@edit');
  20. Route::get('admin_merchant_config/get','AdminUserMerchantController@getMerchantConfig');
  21. Route::post('admin_merchant_config/edit','AdminUserMerchantController@editMerchantConfig');
  22. Route::post('admin_merchant_uplode', 'AdminUserMerchantController@adminMerchantUplode');
  23. Route::post('admin_merchant_uplode_pay', 'AdminUserMerchantController@adminMerchantPay');
  24. Route::resource('admin_merchants', 'AdminUserMerchantController', ['parameters' => [
  25. 'admin_merchants' => 'admin_merchants'
  26. ]]);
  27. Route::resource('admin-users', 'AdminUserController');
  28. Route::get('admin_user/areaAdmin', 'AdminUserController@areaAdmin');
  29. Route::put('vue-routers', 'VueRouterController@batchUpdate')->name('vue-routers.batch.update');
  30. Route::resource('vue-routers', 'VueRouterController')->except(['show', 'create']);
  31. Route::resource('admin-permissions', 'AdminPermissionController')->except(['show']);
  32. Route::resource('admin-roles', 'AdminRoleController')->except(['show']);
  33. Route::resource('config-categories', 'ConfigCategoryController')->except(['show', 'create']);
  34. Route::prefix('configs')
  35. ->as('configs.')
  36. ->group(function () {
  37. Route::get('vue-routers', 'ConfigController@vueRouters')->name('vue-routers');
  38. });
  39. Route::put('configs/values', 'ConfigController@updateValues')->name('configs.update_values');
  40. Route::resource('configs', 'ConfigController')->except(['show']);
  41. Route::get('configs/{categorySlug}', 'ConfigController@getByCategorySlug')->name('configs.by_category_slug');
  42. Route::resource('system-media-categories', 'SystemMediaCategoryController')->except(['show', 'create']);
  43. // 在指定分类下,上传文件
  44. Route::post(
  45. 'system-media-categories/{system_media_category}/system-media',
  46. 'SystemMediaCategoryController@storeSystemMedia'
  47. )->name('system-media-categories.system-media.store');
  48. // 获取指定分类下的所有文件
  49. Route::get(
  50. 'system-media-categories/{system_media_category}/system-media',
  51. 'SystemMediaCategoryController@systemMediaIndex'
  52. )->name('system-media-categories.system-media.index');
  53. Route::resource('system-media', 'SystemMediaController')
  54. // system-media 自动转成单数后 变为了 system-sedium
  55. // 所以手动指定
  56. ->parameters(['system-media' => 'system_media'])
  57. ->except(['store', 'show', 'create']);
  58. //区域 停车区域
  59. Route::resource('area', 'AreaController')->except(['create']);
  60. Route::resource('parking', 'ParkingController')->except(['show', 'create']);
  61. Route::post('parking/status', 'ParkingController@updateStatus');
  62. // Route::put('area_setting', 'AreaSettingController@update');
  63. Route::resource('area_setting', 'AreaSettingController');
  64. Route::post('area_setting/uploadImg', 'AreaSettingController@uploadImg');
  65. Route::get('parking/applyAddParking', 'ParkingController@applyAddParking');
  66. //车辆部分
  67. Route::resource('bike', 'BikeController')->except(['show', 'create']);
  68. Route::put('bike/updateRemark/{id}', 'BikeController@updateRemark');
  69. Route::get('bike/maps', 'BikeController@maps');
  70. Route::post('bike/bikesUpdate', 'BikeController@bikesUpdate');
  71. Route::post('bike/bikesImport', 'BikeController@import');
  72. Route::post('bike/getBikePosition', 'BikeController@analysisPosition');
  73. Route::get('bike/bikesDownload', 'BikeController@download');
  74. Route::get('bike/qrCode', 'BikeController@QrCode');
  75. Route::get('bike/qrCodesDownload', 'BikeController@qrCodesDownload');
  76. Route::get('bike/statistics', 'BikeController@statistics'); //统计信息
  77. Route::post('bike/mulBikesContro', 'BikeController@mulBikesContro'); //批量操作
  78. Route::get('bike/bikeStatusValueLabel', 'BikeController@bikeStatusValueLabel'); //车辆状态
  79. Route::post('bike/getTrajectorys', 'BikeController@getTrajectorys'); //车车辆所有轨迹
  80. Route::post('bike/getTrajectory', 'BikeController@getTrajectory');
  81. Route::post('bike/getOrderRentTrajectory', 'BikeController@getOrderRentTrajectory');
  82. //押金
  83. Route::get('deposit/statistics', 'DepositController@depositAnalysis');
  84. Route::get('deposit/depositTotal', 'DepositController@depositTotal');
  85. Route::get('deposit/refundLogIndex', 'DepositController@refundLogIndex');
  86. Route::resource('deposit', 'DepositController')->only(['index']);
  87. //收益
  88. Route::get('profit/statistics', "ProfitController@profitAnalysis");
  89. Route::get('profit/profitTotal', "ProfitController@profitTotal");
  90. Route::resource('profit', "ProfitController")->only(['index']);
  91. //用户
  92. Route::resource('user', "UserController")->except(['show']);
  93. Route::post('user/status', 'UserController@changeStatus');
  94. Route::get('user/wallet', 'UserController@wallet');
  95. Route::get('user/number', 'UserController@userNumber');
  96. Route::get('user/moneySum', 'UserController@moneySum');
  97. Route::post('user/returnDeposit', 'UserController@returnDeposit');
  98. Route::post('user/reReturnDeposit', 'UserController@reReturnDeposit');
  99. Route::post('user/groupSendSms', 'UserController@groupSendSms');
  100. Route::get('user/groupSendSmsList', 'UserController@groupSendSmsList');
  101. Route::get('user/groupSmsTemplate', 'UserController@groupSmsTemplate');
  102. Route::get('user/getUserByMobile', 'UserController@getUserByMobile');
  103. Route::post('user/rechargeBalance', 'UserController@rechargeBalance');
  104. Route::post('user/refundBalance', 'UserController@refundBalance');
  105. Route::get('user/refundBalanceOrders', 'UserController@refundBalanceOrderList');
  106. Route::get('user/queryRefundBalance', 'UserController@queryRefundBalance');
  107. Route::get('user/refundBalanceAgain', 'UserController@refundBalanceAgain');
  108. Route::get('user/students', 'UserController@students');
  109. Route::get('user/studentsNumber', 'UserController@studentsNumber');
  110. Route::post('user/student', 'UserController@updateStudents');
  111. //订单
  112. Route::resource('orders', 'OrderController')->only(['index', 'update']);
  113. Route::get('orders/orderLocation', 'OrderController@orderLocation');
  114. Route::get('orders/orderLocationsearch', 'OrderController@orderLocationsearch');
  115. Route::get('orders/orderStatus', 'OrderController@orderStatus');
  116. Route::get('orders/orderBikeOperate', 'OrderController@orderBikeOperate');
  117. Route::post('orders/settlement', 'OrderController@settlementOrder');//结算
  118. Route::post('orders/closeLock', 'OrderController@updateOrderCloseBike');//关锁
  119. Route::post('orders/returnOrderMoney', 'OrderController@orderReturnMoney');//返还
  120. Route::post('orders/changeOrderRiding', 'OrderController@changeOrderRiding');//订单回退
  121. Route::post('orders/orderDetailPosition', 'OrderController@orderDetailPosition');//详情位置
  122. Route::post('orders/orderBikeContro', 'OrderController@orderBikeContro');//详情位置
  123. Route::get('orders/getByNo', 'OrderController@getOrdersByNo');//详情位置
  124. //日租订单
  125. Route::resource('orderRent', 'OrderRentController')->only(['index', 'update']);
  126. Route::get('orderRent/orderRentLocationsearch', 'OrderRentController@orderRentLocationsearch');
  127. Route::get('orderRent/orderRentStatus', 'OrderRentController@orderRentStatus');
  128. Route::get('orderRent/orderRentBikeOperate', 'OrderRentController@orderRentBikeOperate');
  129. Route::get('orderRent/orderRentLocation', 'OrderRentController@orderRentLocation');
  130. Route::post('orderRent/closeLock', 'OrderRentController@changeOrderRentStatus'); // 还车
  131. Route::post('orderRent/settlement', 'OrderRentController@settlementOrderRent');//结算
  132. Route::post('orderRent/returnOrderMoney', 'OrderRentController@orderRentReturnMoney');//返还
  133. Route::post('orderRent/orderRentDetailPosition', 'OrderRentController@orderRentDetailPosition');//详情位置
  134. Route::post('orderRent/changeRentOrderRiding', 'OrderRentController@changeRentOrderRiding');//订单回退
  135. Route::post('orderRent/orderBikeContro', 'OrderRentController@orderBikeContro');//订单回退
  136. //地勤
  137. Route::resource('worker', 'WorkerController')->except(['show', 'edit']);
  138. Route::post('worker/reset', 'WorkerController@resetPassword');
  139. Route::get('worker/workOrderChart', 'WorkerController@workOrderChart');
  140. // 用户报修
  141. Route::get('user_repaired', 'UserRepairedController@index');
  142. Route::get('user_repaired/img', 'UserRepairedController@getRepairedImg');
  143. // 工单
  144. Route::get('work_order', 'WorkOrderController@index');
  145. Route::get('work_order/workOrderType', 'WorkOrderController@workOrderType');
  146. Route::post('work_order/addworkOrder', 'WorkOrderController@addworkOrder');
  147. Route::post('work_order/mulOverWorkOrder', 'WorkOrderController@mulOverWorkOrder'); // 批量完成
  148. Route::post('work_order/mulAssignWorkOrder', 'WorkOrderController@mulAssignWorkOrder'); //批量指派
  149. Route::get('work_order/getWarningByWorkOrderId', 'WorkOrderController@getWarningByWorkOrderId'); //批量指派
  150. //首页头部
  151. // Route::get('index/top', 'IndexController@topIndex');
  152. // Route::get('index/todoEvent', 'IndexController@todoEvent'); //待办事项
  153. // Route::get('index/profitChart', 'IndexController@profitChart');
  154. // Route::get('index/newUsersChart', 'IndexController@newUsersChart');
  155. // Route::get('index/newOrderChart', 'IndexController@newOrderChart');
  156. // Route::get('index/riddingRanking', 'IndexController@riddingRanking');
  157. // Route::get('index/bikeProfitRanking', 'IndexController@bikeProfitRanking');
  158. // Route::get('index/newDayRentOrderChart', 'IndexController@newDayRentOrderChart'); // 日租新订单统计图数据
  159. // Route::get('index/riddingRankingByDayRentOrder', 'IndexController@riddingRankingByDayRentOrder'); // 日租订单骑行排行榜
  160. Route::get('index/heatMap', 'IndexController@heatMap'); //热力图
  161. // Route::get('index/userPhoneChart', 'IndexController@userPhoneChart'); //机型分析
  162. // 新 首页头部 - 控制台统计
  163. Route::get('index/merchantList', 'DataStatisticsController@adminMerchantList'); //商户列表
  164. Route::get('index/areaList', 'DataStatisticsController@areaList'); //区域列表
  165. Route::get('index/top', 'DataStatisticsController@topIndex'); //头部统计数据
  166. Route::get('index/todoEvent', 'DataStatisticsController@todoEvent'); //待办事项
  167. Route::get('index/profitChart', 'DataStatisticsController@profitChart');//总收益趋势
  168. Route::get('index/newUsersChart', 'DataStatisticsController@newUsersChart');//新用户增长趋势
  169. Route::get('index/newOrderChart', 'DataStatisticsController@newOrderChart');//新订单趋势 - 普通订单
  170. Route::get('index/newDayRentOrderChart', 'DataStatisticsController@newDayRentOrderChart');//新订单趋势 - 日租订单
  171. Route::get('index/riddingRanking', 'DataStatisticsController@riddingRanking');//骑行排行榜 - 普通订单
  172. Route::get('index/riddingRankingByDayRentOrder', 'DataStatisticsController@riddingRankingByDayRentOrder');//骑行排行榜 - 日租订单
  173. Route::get('index/userPhoneChart', 'DataStatisticsController@userPhoneChart');//机型分析 手机统计
  174. Route::get('index/bikeProfitRanking', 'DataStatisticsController@bikeProfitRanking');//车辆收益排行榜
  175. Route::get('index/shareOutBonus', 'DataStatisticsController@shareOutBonus');//商户分红统计
  176. Route::put('system-media', 'SystemMediaController@batchUpdate')->name('system-media.batch.update');
  177. Route::delete('system-media', 'SystemMediaController@batchDestroy')->name('system-media.batch.destroy');
  178. Route::resource('box', 'BoxBindingController')->only(['index', 'store']);
  179. Route::post('box/import', 'BoxBindingController@import');
  180. Route::get('box/download', 'BoxBindingController@download'); //中控
  181. Route::get('box/unbindBox/{id}', 'BoxBindingController@unbindBox'); //中控
  182. Route::put('box/updateRemark/{id}', 'BoxBindingController@updateRemark'); //中控
  183. Route::put('box/setting/{id}', 'BoxBindingController@setting'); //中控
  184. Route::put('box/settingMul', 'BoxBindingController@settingMul'); //中控
  185. Route::get('box/getServerOptions', 'BoxBindingController@getServerOptions'); //中控
  186. Route::get('box/queryConfig', 'BoxBindingController@queryConfig'); //中控
  187. Route::get('box/warningLogsIndex', 'BoxBindingController@warningLogsIndex'); //中控
  188. Route::get('box/getWarningType', 'BoxBindingController@getWarningType'); //中控
  189. Route::resource('feedback', 'QuestionController')->only(['index']);// 意见反馈
  190. Route::get('feedback/isReadChange', 'QuestionController@isReadChange');//意见反馈
  191. Route::resource('advertisements', 'AdvertisementController')->except(['show']);
  192. Route::delete('advertisement-children/{id}', 'AdvertisementController@advertisementChildrenDestory');
  193. Route::get('advertisements/advertisementSelectData', 'AdvertisementController@advertisementSelectData');
  194. Route::post('advertisements/uploadImg', 'AdvertisementController@uploadImg');
  195. Route::post('advertisements/uploadImg2', 'AdvertisementController@uploadImg2');
  196. // 通知公告
  197. Route::resource('announcements', 'AnnouncementController')->except(['show']);
  198. Route::post('announcements/uploadImg2', 'AnnouncementController@uploadImg2');
  199. //骑行卡
  200. Route::resource('card_riding', 'CardRidingController')->except(['show']);
  201. Route::resource('card_riding_order', 'CardRidingOrderController')->only(['index']);
  202. Route::resource('card_riding_user_bags', 'CardRidingUserBagsController')->only(['index']);
  203. Route::get('card_riding_user_bags/cardLogs', 'CardRidingUserBagsController@cardLogs');
  204. Route::post('card_riding/giveCardToUser', 'CardRidingController@giveCardToUser');
  205. // 充值管理
  206. Route::resource('recharge_configuration', 'RechargeConfigurationController');
  207. Route::resource('recharge_order', 'RechargeOrderController')->only(['index']);
  208. Route::post('recharge_order/rechargeChart', 'RechargeOrderController@rechargeChart');
  209. Route::get('recharge_order/statisticsRecharge', 'RechargeOrderController@statisticsRecharge');
  210. Route::get('recharge_order/totalRecharge', 'RechargeOrderController@totalRecharge');
  211. // 优惠券
  212. Route::resource('coupon', 'CouponController')->except(['show', 'create']);
  213. Route::post('coupon/uploadImg', 'CouponController@uploadImg');
  214. Route::post('coupon/giveCouponToUser', 'CouponController@giveCouponToUser');
  215. Route::resource('coupon_user_bags', 'CouponUserBagsController')->only(['index']);
  216. // 邀请新用户
  217. Route::resource('invite_new_users_configs', 'InviteNewUsersConfigsController')->except(['show']);
  218. Route::post('invite_new_users_configs/uploadImg', 'InviteNewUsersConfigsController@uploadImg');
  219. Route::get('invite_new_users', 'InviteNewUsersConfigsController@inviteNewUsers');
  220. Route::get('invite_new_users_give_gift_log', 'InviteNewUsersConfigsController@inviteNewUsersGiveGiftLog');
  221. // 押金卡
  222. Route::resource('deposit_cards', 'DepositCardController')->except(['show']);
  223. Route::post('deposit_cards/giveDepositCardToUser', 'DepositCardController@giveDepositCardToUser');
  224. Route::resource('deposit_card_orders', 'DepositCardOrderController')->only(['index']);
  225. // 罚单
  226. Route::resource('punishment_orders', 'PunishmentOrderController')->except(['show', 'create']);
  227. });
  228. Route::post('auth/login', 'Auth\LoginController@login')->name('login');
  229. Route::get('areaOpen', 'IndexOpenController@indexOpen');
  230. Route::get('bike/mapsOpen', 'IndexOpenController@mapsOpen');
  231. //首页头部
  232. Route::get('indexOpen/top', 'IndexOpenController@topIndex');
  233. Route::get('indexOpen/todoEvent', 'IndexOpenController@todoEvent'); //待办事项
  234. Route::get('indexOpen/profitChart', 'IndexOpenController@profitPolygonalChart');
  235. Route::get('indexOpen/newOrderChart', 'IndexOpenController@newOrderChart');
  236. Route::get('indexOpen/newUsersChart', 'IndexOpenController@newUsersChart');
  237. Route::get('indexOpen/newDayRentOrderChart', 'IndexOpenController@newDayRentOrderChart'); // 日租新订单统计图数据
  238. Route::get('indexOpen/heatMap', 'IndexOpenController@heatMap'); //热力图
  239. Route::get('indexOpen/acticveWxUserSattistics', 'IndexOpenController@acticveWxUserSattistics'); //活跃用户年龄分布
  240. Route::get('indexOpen/hourOrderNumber', 'IndexOpenController@hourOrderNumber'); //前七天小时订单统计
  241. Route::get('indexOpen/recentMonthOrderProfit', 'IndexOpenController@recentMonthOrderProfit');// 近一个月订单收益
  242. Route::get('indexOpen/recentMonthAddUser', 'IndexOpenController@recentMonthAddUser');// 近一个月新增用户
  243. Route::get('indexOpen/statisticsOpen', 'IndexOpenController@statisticsOpen');// 地图车辆统计
  244. Route::get('test/test', 'TestSomethingController@index');// 测试接口等待测试结束后删除