wx.php 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php
  2. use Illuminate\Http\Request;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | API Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register API routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | is assigned the "api" middleware group. Enjoy building your API!
  11. |
  12. */
  13. Route::any('wxSetUser', 'Api\WxController@setUser');
  14. Route::any('wxSetMobile', 'Api\WxController@setMobile');
  15. Route::group(['middleware'=> ['checkWx']],function ($route){
  16. $route->any('menuAdd', 'Api\SysMenuController@add');
  17. $route->any('menuEdit', 'Api\SysMenuController@edit');
  18. $route->any('menuDel', 'Api\SysMenuController@del');
  19. $route->any('menuList', 'Api\SysMenuController@menuList');
  20. $route->any('menuMove', 'Api\SysMenuController@menuMove');
  21. $route->any('employeeAdd', 'Api\EmployeeController@employeeAdd');
  22. $route->any('employeeEdit', 'Api\EmployeeController@employeeEdit');
  23. $route->any('employeeEditOther', 'Api\EmployeeController@employeeEditOther');
  24. $route->any('employeeDel', 'Api\EmployeeController@employeeDel');
  25. $route->any('employeeDetail', 'Api\EmployeeController@employeeDetail');
  26. $route->any('employeeList', 'Api\EmployeeController@employeeList');
  27. $route->any('departAdd', 'Api\EmployeeController@departAdd');
  28. $route->any('departEdit', 'Api\EmployeeController@departEdit');
  29. $route->any('departDel', 'Api\EmployeeController@departDel');
  30. $route->any('departList', 'Api\EmployeeController@departList');
  31. $route->any('roleAdd', 'Api\EmployeeController@roleAdd');
  32. $route->any('roleEdit', 'Api\EmployeeController@roleEdit');
  33. $route->any('roleDel', 'Api\EmployeeController@roleDel');
  34. $route->any('roleList', 'Api\EmployeeController@roleList');
  35. $route->any('roleDetail', 'Api\EmployeeController@roleDetail');
  36. $route->any('roleMenu', 'Api\EmployeeController@roleMenu');
  37. $route->any('teamAdd', 'Api\EmployeeController@teamAdd');
  38. $route->any('teamEdit', 'Api\EmployeeController@teamEdit');
  39. $route->any('teamDel', 'Api\EmployeeController@teamDel');
  40. $route->any('teamList', 'Api\EmployeeController@teamList');
  41. $route->any('teamDetail', 'Api\EmployeeController@teamDetail');
  42. $route->any('employeeDepart', 'Api\EmployeeController@employeeDepart');
  43. $route->any('employeeTeam', 'Api\EmployeeController@employeeTeam');
  44. $route->any('employeeRole', 'Api\EmployeeController@employeeRole');
  45. $route->any('getEmployeeImg', 'Api\EmployeeController@getEmployeeImg');
  46. //组织
  47. $route->any('organizationList', 'Api\OrganizationController@organizationList');
  48. $route->any('organizationEdit', 'Api\OrganizationController@organizationEdit');
  49. $route->any('organizationAdd', 'Api\OrganizationController@organizationAdd');
  50. $route->any('organizationDel', 'Api\OrganizationController@organizationDel');
  51. $route->any('organizationDetail', 'Api\OrganizationController@organizationDetail');
  52. //客户供应商
  53. $route->any('customerSupplyList', 'Api\CustomerSupplyController@customerSupplyList2');
  54. $route->any('customerSupplyEdit', 'Api\CustomerSupplyController@customerSupplyEdit');
  55. $route->any('customerSupplyAdd', 'Api\CustomerSupplyController@customerSupplyAdd');
  56. $route->any('customerSupplyDel', 'Api\CustomerSupplyController@customerSupplyDel');
  57. $route->any('customerSupplyDetail', 'Api\CustomerSupplyController@customerSupplyDetail');
  58. //维度选项
  59. $route->any('dimensionList', 'Api\DimensionController@dimensionList');
  60. $route->any('dimensionEdit', 'Api\DimensionController@dimensionEdit');
  61. $route->any('dimensionAdd', 'Api\DimensionController@dimensionAdd');
  62. $route->any('dimensionDel', 'Api\DimensionController@dimensionDel');
  63. $route->any('dimensionDetail', 'Api\DimensionController@dimensionDetail');
  64. //量化
  65. $route->any('quantizationList', 'Api\QuantizationController@quantizationList');
  66. $route->any('quantizationEdit', 'Api\QuantizationController@quantizationEdit');
  67. $route->any('quantizationAdd', 'Api\QuantizationController@quantizationAdd');
  68. $route->any('quantizationDel', 'Api\QuantizationController@quantizationDel');
  69. $route->any('quantizationDetail', 'Api\QuantizationController@quantizationDetail');
  70. //订单
  71. $route->any('orderList', 'Api\OrderController@orderList');
  72. $route->any('orderEdit', 'Api\OrderController@orderEdit');
  73. $route->any('orderAdd', 'Api\OrderController@orderAdd');
  74. $route->any('orderDel', 'Api\OrderController@orderDel');
  75. $route->any('orderDetail', 'Api\OrderController@orderDetail');
  76. //创建量化
  77. $route->any('quantizationCreateCapList', 'Api\QuantizationController@quantizationCreateList');
  78. $route->any('quantizationCreateCooList', 'Api\QuantizationController@quantizationCreateList');
  79. $route->any('quantizationCreateManList', 'Api\QuantizationController@quantizationCreateList');
  80. $route->any('quantizationCreateEdit', 'Api\QuantizationController@quantizationCreateEdit');
  81. $route->any('quantizationCreateAdd', 'Api\QuantizationController@quantizationCreateAdd');
  82. $route->any('quantizationCreateDel', 'Api\QuantizationController@quantizationCreateDel');
  83. $route->any('quantizationCreateDetail', 'Api\QuantizationController@quantizationCreateDetail');
  84. //催单
  85. $route->any('reminderList', 'Api\OrderController@reminderList');
  86. $route->any('reminderEdit', 'Api\OrderController@reminderEdit');
  87. $route->any('reminderAdd', 'Api\OrderController@reminderAdd');
  88. $route->any('reminderDel', 'Api\OrderController@reminderDel');
  89. $route->any('reminderDetail', 'Api\OrderController@reminderDetail');
  90. $route->any('reminderSendWx', 'Api\OrderController@reminderSendWx');
  91. //待办
  92. $route->any('toDoList', 'Api\OrderController@toDoList2');
  93. $route->any('toDoEdit', 'Api\OrderController@toDoEdit');
  94. $route->any('toDoAdd', 'Api\OrderController@toDoAdd');
  95. $route->any('toDoDel', 'Api\OrderController@toDoDel');
  96. $route->any('toDoDetail', 'Api\OrderController@toDoDetail');
  97. $route->any('toDoFinished', 'Api\OrderController@toDoFinished');
  98. $route->any('valueStatistics', 'Api\StatisticsController@valueStatistics');
  99. //费用
  100. $route->any('costManagementList', 'Api\CostManagementController@costManagementList');
  101. $route->any('costManagementEdit', 'Api\CostManagementController@costManagementEdit');
  102. $route->any('costManagementAdd', 'Api\CostManagementController@costManagementAdd');
  103. $route->any('costManagementDel', 'Api\CostManagementController@costManagementDel');
  104. $route->any('costManagementDetail', 'Api\CostManagementController@costManagementDetail');
  105. //用户指引
  106. $route->any('userGuideList', 'Api\UserGuideController@userGuideList');
  107. $route->any('userGuideEdit', 'Api\UserGuideController@userGuideEdit')->middleware('OssFileDeal');
  108. $route->any('userGuideAdd', 'Api\UserGuideController@userGuideAdd')->middleware('OssFileDeal');
  109. $route->any('userGuideDel', 'Api\UserGuideController@userGuideDel')->middleware('OssFileDeal');
  110. $route->any('userGuideDetail', 'Api\UserGuideController@userGuideDetail');
  111. });