api.php 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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::middleware('auth:api')->get('/user', function (Request $request) {
  14. return $request->user();
  15. });
  16. Route::any('login', 'Api\LoginController@login');
  17. Route::any('test', 'Api\TestController@aa');
  18. //文件获取
  19. Route::any('uploadFiles/{file_name}', 'Api\FileUploadController@getFile');
  20. //获取导出规则
  21. Route::any('getExport/{file_name}','Api\SysMenuController@getExport');
  22. Route::group(['middleware'=> ['checkLogin']],function ($route){
  23. //oa
  24. $route->any('oaGetData', 'Api\OaController@oaGetData');
  25. $route->any('getOperationList', 'Api\OperationLogController@getOperationList');
  26. $route->any('createOaOrder', 'Api\OaController@createOaOrder');
  27. $route->any('oaCheck', 'Api\OaController@oaCheck');
  28. $route->any('oaOrderList', 'Api\OaController@oaOrderList');
  29. $route->any('oaList', 'Api\OaController@oaList');
  30. $route->any('oaEdit', 'Api\OaController@oaEdit');
  31. $route->any('oaDetail', 'Api\OaController@oaDetail');
  32. $route->any('setOperationList', 'Api\OperationLogController@setOperationList');
  33. $route->any('oaOrderState', 'Api\OaController@oaOrderState');
  34. $route->any('oaGetTeamDetail', 'Api\OaController@oaGetTeamDetail');
  35. $route->any('checkAllOver', 'Api\OaController@checkAllOver');
  36. $route->any('oaCheckMove', 'Api\OaController@oaCheckMove');
  37. $route->any('oaSubUserDetail', 'Api\OaController@oaSubUserDetail');
  38. $route->any('oaSubRemark', 'Api\OaController@oaSubRemark');
  39. //审批流参数
  40. $route->any('oaParamGet','Api\OaController@oaParamGet');
  41. $route->any('getHeaderSetting', 'Api\HeaderWordController@getHeaderSettings');
  42. $route->any('excelExport', 'Api\ExcelController@excelExport');
  43. $route->any('HeaderSettingsAdd', 'Api\HeaderWordController@add');
  44. $route->any('HeaderSettingsDetail', 'Api\HeaderWordController@detail');
  45. //文件上传统一方法
  46. $route->any('uploadFile', 'Api\FileUploadController@uploadFile');
  47. $route->any('menuAdd', 'Api\SysMenuController@add');
  48. $route->any('menuEdit', 'Api\SysMenuController@edit');
  49. $route->any('menuDel', 'Api\SysMenuController@del');
  50. $route->any('menuList', 'Api\SysMenuController@menuList');
  51. $route->any('menuMove', 'Api\SysMenuController@menuMove');
  52. $route->any('employeeAdd', 'Api\EmployeeController@employeeAdd');
  53. $route->any('employeeEdit', 'Api\EmployeeController@employeeEdit');
  54. $route->any('employeeEditOther', 'Api\EmployeeController@employeeEditOther');
  55. $route->any('employeeDel', 'Api\EmployeeController@employeeDel');
  56. $route->any('employeeDetail', 'Api\EmployeeController@employeeDetail');
  57. $route->any('employeeList', 'Api\EmployeeController@employeeList');
  58. $route->any('departAdd', 'Api\EmployeeController@departAdd');
  59. $route->any('departEdit', 'Api\EmployeeController@departEdit');
  60. $route->any('departDel', 'Api\EmployeeController@departDel');
  61. $route->any('departList', 'Api\EmployeeController@departList');
  62. $route->any('roleAdd', 'Api\EmployeeController@roleAdd');
  63. $route->any('roleEdit', 'Api\EmployeeController@roleEdit');
  64. $route->any('roleDel', 'Api\EmployeeController@roleDel');
  65. $route->any('roleList', 'Api\EmployeeController@roleList');
  66. $route->any('roleDetail', 'Api\EmployeeController@roleDetail');
  67. $route->any('roleMenu', 'Api\EmployeeController@roleMenu');
  68. $route->any('teamAdd', 'Api\EmployeeController@teamAdd');
  69. $route->any('teamEdit', 'Api\EmployeeController@teamEdit');
  70. $route->any('teamDel', 'Api\EmployeeController@teamDel');
  71. $route->any('teamList', 'Api\EmployeeController@teamList');
  72. $route->any('teamDetail', 'Api\EmployeeController@teamDetail');
  73. $route->any('employeeDepart', 'Api\EmployeeController@employeeDepart');
  74. $route->any('employeeTeam', 'Api\EmployeeController@employeeTeam');
  75. $route->any('employeeRole', 'Api\EmployeeController@employeeRole');
  76. $route->any('getEmployeeImg', 'Api\EmployeeController@getEmployeeImg');
  77. //组织
  78. $route->any('organizationList', 'Api\OrganizationController@organizationList');
  79. $route->any('organizationEdit', 'Api\OrganizationController@organizationEdit');
  80. $route->any('organizationAdd', 'Api\OrganizationController@organizationAdd');
  81. $route->any('organizationDel', 'Api\OrganizationController@organizationDel');
  82. $route->any('organizationDetail', 'Api\OrganizationController@organizationDetail');
  83. //客户供应商
  84. $route->any('customerSupplyList', 'Api\CustomerSupplyController@customerSupplyList');
  85. $route->any('customerSupplyEdit', 'Api\CustomerSupplyController@customerSupplyEdit');
  86. $route->any('customerSupplyAdd', 'Api\CustomerSupplyController@customerSupplyAdd');
  87. $route->any('customerSupplyDel', 'Api\CustomerSupplyController@customerSupplyDel');
  88. $route->any('customerSupplyDetail', 'Api\CustomerSupplyController@customerSupplyDetail');
  89. //维度选项
  90. $route->any('dimensionList', 'Api\DimensionController@dimensionList');
  91. $route->any('dimensionEdit', 'Api\DimensionController@dimensionEdit');
  92. $route->any('dimensionAdd', 'Api\DimensionController@dimensionAdd');
  93. $route->any('dimensionDel', 'Api\DimensionController@dimensionDel');
  94. $route->any('dimensionDetail', 'Api\DimensionController@dimensionDetail');
  95. //量化
  96. $route->any('quantizationList', 'Api\QuantizationController@quantizationList');
  97. $route->any('quantizationEdit', 'Api\QuantizationController@quantizationEdit');
  98. $route->any('quantizationAdd', 'Api\QuantizationController@quantizationAdd');
  99. $route->any('quantizationDel', 'Api\QuantizationController@quantizationDel');
  100. $route->any('quantizationDetail', 'Api\QuantizationController@quantizationDetail');
  101. //订单
  102. $route->any('orderList', 'Api\OrderController@orderList');
  103. $route->any('orderEdit', 'Api\OrderController@orderEdit');
  104. $route->any('orderAdd', 'Api\OrderController@orderAdd');
  105. $route->any('orderDel', 'Api\OrderController@orderDel');
  106. $route->any('orderDetail', 'Api\OrderController@orderDetail');
  107. //创建量化
  108. $route->any('quantizationCreateCapList', 'Api\QuantizationController@quantizationCreateList');
  109. $route->any('quantizationCreateCooList', 'Api\QuantizationController@quantizationCreateList');
  110. $route->any('quantizationCreateEdit', 'Api\QuantizationController@quantizationCreateEdit');
  111. $route->any('quantizationCreateAdd', 'Api\QuantizationController@quantizationCreateAdd');
  112. $route->any('quantizationCreateDel', 'Api\QuantizationController@quantizationCreateDel');
  113. $route->any('quantizationCreateDetail', 'Api\QuantizationController@quantizationCreateDetail');
  114. //催单
  115. $route->any('reminderList', 'Api\OrderController@reminderList');
  116. $route->any('reminderEdit', 'Api\OrderController@reminderEdit');
  117. $route->any('reminderAdd', 'Api\OrderController@reminderAdd');
  118. $route->any('reminderDel', 'Api\OrderController@reminderDel');
  119. $route->any('reminderDetail', 'Api\OrderController@reminderDetail');
  120. //获取默认表头
  121. $route->any('getTableHead','Api\TableHeadController@tableHeadGet');
  122. //设置表头
  123. $route->any('setTableHead','Api\TableHeadController@tableHeadAdd');
  124. //获取设置搜索项
  125. $route->any('getTableSearch','Api\TableHeadController@tableSearchGet');
  126. //设置搜索项
  127. $route->any('setTableSearch','Api\TableHeadController@tableSearchAdd');
  128. //获取默认打开筛选
  129. $route->any('getFilter','Api\TableHeadController@filterGet');
  130. //设置默认打开筛选
  131. $route->any('setFilter','Api\TableHeadController@filterAdd');
  132. //获取下载模板
  133. $route->any('getTableTitleXls','Api\ImportController@getTableTitleXls');
  134. //导入统一方法
  135. $route->any('importAll','Api\ImportController@importAll');
  136. //导出统一方法
  137. $route->any('exportFile', 'Api\ExportFileController@exportFile');
  138. });