api.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. Route::any('getHeaderWord', 'Api\HeaderWordController@getHeaderWord');
  19. Route::any('deviceList', 'Api\Device\DeviceController@deviceList');
  20. Route::group(['middleware'=> []],function ($route){
  21. $route->any('menuAdd', 'Api\SysMenuController@add');
  22. $route->any('menuEdit', 'Api\SysMenuController@edit');
  23. $route->any('menuDel', 'Api\SysMenuController@del');
  24. $route->any('menuList', 'Api\SysMenuController@menuList');
  25. $route->any('employeeAdd', 'Api\EmployeeController@employeeAdd');
  26. $route->any('employeeEdit', 'Api\EmployeeController@employeeEdit');
  27. $route->any('employeeDel', 'Api\EmployeeController@employeeDel');
  28. $route->any('employeeList', 'Api\EmployeeController@employeeList');
  29. $route->any('departAdd', 'Api\EmployeeController@departAdd');
  30. $route->any('departEdit', 'Api\EmployeeController@departEdit');
  31. $route->any('departDel', 'Api\EmployeeController@departDel');
  32. $route->any('departList', 'Api\EmployeeController@departList');
  33. $route->any('roleAdd', 'Api\EmployeeController@roleAdd');
  34. $route->any('roleEdit', 'Api\EmployeeController@roleEdit');
  35. $route->any('roleDel', 'Api\EmployeeController@roleDel');
  36. $route->any('roleList', 'Api\EmployeeController@roleList');
  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('employeeDepart', 'Api\EmployeeController@employeeDepart');
  42. $route->any('employeeTeam', 'Api\EmployeeController@employeeTeam');
  43. $route->any('employeeRole', 'Api\EmployeeController@employeeRole');
  44. $route->any('measureAdd', 'Api\MeasureController@Add');
  45. $route->any('measureEdit', 'Api\MeasureController@Edit');
  46. $route->any('measureDel', 'Api\MeasureController@Del');
  47. $route->any('measureList', 'Api\MeasureController@measureList');
  48. $route->any('basicMaterialList', 'Api\MaterialController@basicMaterialList');
  49. $route->any('basicMaterialEdit', 'Api\MaterialController@basicMaterialEdit');
  50. $route->any('basicMaterialAdd', 'Api\MaterialController@basicMaterialAdd');
  51. $route->any('basicMaterialDel', 'Api\MaterialController@basicMaterialDel');
  52. $route->any('materialList', 'Api\MaterialController@materialList');
  53. $route->any('materialDetail', 'Api\MaterialController@materialDetail');
  54. $route->any('materialEdit', 'Api\MaterialController@materialEdit');
  55. $route->any('materialAdd', 'Api\MaterialController@materialAdd');
  56. $route->any('materialDel', 'Api\MaterialController@materialDel');
  57. //工序
  58. $route->any('basicProcessList', 'Api\ProcessController@basicProcessList');
  59. $route->any('basicProcessEdit', 'Api\ProcessController@basicProcessEdit');
  60. $route->any('basicProcessAdd', 'Api\ProcessController@basicProcessAdd');
  61. $route->any('basicProcessDel', 'Api\ProcessController@basicProcessDel');
  62. $route->any('processList', 'Api\ProcessController@processList');
  63. $route->any('processDetail', 'Api\ProcessController@processDetail');
  64. $route->any('processEdit', 'Api\ProcessController@processEdit');
  65. $route->any('processAdd', 'Api\ProcessController@processAdd');
  66. $route->any('processDel', 'Api\ProcessController@processDel');
  67. //工艺
  68. $route->any('technologyList', 'Api\TechnologyController@technologyList');
  69. $route->any('technologyEdit', 'Api\TechnologyController@technologyEdit');
  70. $route->any('technologyAdd', 'Api\TechnologyController@technologyAdd');
  71. $route->any('technologyDel', 'Api\TechnologyController@technologyDel');
  72. $route->any('technologyCopy', 'Api\TechnologyController@technologyCopy');
  73. $route->any('productList', 'Api\MaterialController@productList');
  74. $route->any('productEdit', 'Api\MaterialController@edit');
  75. $route->any('productAdd', 'Api\MaterialController@edd');
  76. $route->any('productDel', 'Api\MaterialController@del');
  77. $route->any('bomList', 'Api\BomController@bomList');
  78. $route->any('bomDetail', 'Api\BomController@bomDetail');
  79. $route->any('bomEdit', 'Api\BomController@edit');
  80. $route->any('bomAdd', 'Api\BomController@add');
  81. $route->any('bomDel', 'Api\BomController@del');
  82. $route->any('orderList', 'Api\OrderController@orderList');
  83. $route->any('orderAdd', 'Api\OrderController@add');
  84. $route->any('orderEdit', 'Api\OrderController@add');
  85. $route->any('orderDel', 'Api\OrderController@del');
  86. $route->any('orderDetail', 'Api\OrderController@orderDetail');
  87. $route->any('tagDetail', 'Api\OrderTagController@tagDetail');
  88. $route->any('boxDetail', 'Api\OrderBoxController@boxDetail');
  89. $route->any('transportDetail', 'Api\OrderTransportController@transportDetail');
  90. $route->any('boxIn', 'Api\OrderBoxController@boxIn');
  91. $route->any('boxOut', 'Api\OrderBoxController@boxOut');
  92. $route->any('boxTransport', 'Api\OrderTransportController@boxTransport');
  93. $route->any('transportConfirm', 'Api\OrderTransportController@transportConfirm');
  94. $route->any('apiExport', 'Api\IOController@apiExport');
  95. });