wx.php 5.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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::any('wxLogin', 'Api\WxController@login');
  16. Route::any('wxH5', 'Api\WxController@wxH5');
  17. Route::group(['middleware'=> ['checkWx']],function ($route){
  18. $route->any('oaCheck', 'Api\OaController@oaCheck');
  19. $route->any('oaOrderState', 'Api\OaController@oaOrderState');
  20. $route->any('checkAllOver', 'Api\OaController@checkAllOver');
  21. //不需要账号登录的
  22. //文件上传统一方法
  23. $route->any('uploadFile', 'Api\FileUploadController@uploadFile');
  24. $route->any('saleOrderList', 'Api\WxController@saleOrderList');
  25. $route->any('checkAll', 'Api\CheckController@checkAll');
  26. //需要账号登录的
  27. //采购单
  28. $route->any('purchaseOrderList', 'Api\WxController@purchaseOrderList');
  29. $route->any('purchaseOrderEdit', 'Api\PurchaseOrderController@purchaseOrderEdit');
  30. $route->any('purchaseOrderDetail', 'Api\PurchaseOrderController@purchaseOrderDetail');
  31. $route->any('purchaseOrderAdd', 'Api\PurchaseOrderController@purchaseOrderAdd');
  32. $route->any('purchaseOrderDel', 'Api\PurchaseOrderController@purchaseOrderDel');
  33. //合同
  34. $route->any('salesOrderGet', 'Api\SalesOrderController@salesOrderGet');
  35. $route->any('salesOrderList', 'Api\SalesOrderController@salesOrderList');
  36. $route->any('salesOrderEdit', 'Api\SalesOrderController@salesOrderEdit');
  37. $route->any('salesOrderDetail', 'Api\SalesOrderController@salesOrderDetail');
  38. $route->any('salesOrderAdd', 'Api\SalesOrderController@salesOrderAdd');
  39. $route->any('salesOrderDel', 'Api\SalesOrderController@salesOrderDel');
  40. $route->any('constructionGet', 'Api\ConstructionController@constructionGet');
  41. $route->any('constructionList', 'Api\ConstructionController@constructionList');
  42. $route->any('constructionEdit', 'Api\ConstructionController@constructionEdit');
  43. $route->any('constructionDetail', 'Api\ConstructionController@constructionDetail');
  44. $route->any('constructionAdd', 'Api\ConstructionController@constructionAdd');
  45. $route->any('constructionDel', 'Api\ConstructionController@constructionDel');
  46. $route->any('deliveryNoteList', 'Api\ConstructionController@deliveryNoteList');
  47. $route->any('deliveryNoteDetail', 'Api\ConstructionController@deliveryNoteDetail');
  48. $route->any('deliveryNoteEdit', 'Api\ConstructionController@deliveryNoteEdit');
  49. $route->any('deliveryNoteDel', 'Api\ConstructionController@deliveryNoteDel');
  50. $route->any('employeeList', 'Api\EmployeeController@employeeList');
  51. $route->any('departList', 'Api\EmployeeController@departList');
  52. $route->any('storehouseList', 'Api\StorehouseController@storehouseList');
  53. $route->any('basicTypeList', 'Api\BasicTypeController@basicTypeList');
  54. $route->any('productList', 'Api\ProductController@productList');
  55. $route->any('supplierList', 'Api\SupplierController@customerList');
  56. $route->any('customerList', 'Api\CustomerController@customerList');
  57. $route->any('sportsBagOrderList', 'Api\SportsBagController@orderList');
  58. $route->any('productAdd', 'Api\ProductController@productAdd');
  59. $route->any('productCategoryList', 'Api\ProductController@productCategoryList');
  60. //退换货
  61. $route->any('ReturnExchangeOrderList', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderList');
  62. $route->any('ReturnExchangeOrderEdit', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderEdit');
  63. $route->any('ReturnExchangeOrderDetail', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderDetail');
  64. $route->any('ReturnExchangeOrderAdd', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderAdd');
  65. $route->any('ReturnExchangeOrderDel', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderDel');
  66. //排班设置
  67. $route->any('scheduleList', 'Api\ScheduleController@getList');
  68. $route->any('scheduleEdit', 'Api\ScheduleController@edit');
  69. $route->any('scheduleDetail', 'Api\ScheduleController@detail');
  70. $route->any('scheduleAdd', 'Api\ScheduleController@add');
  71. $route->any('scheduleDel', 'Api\ScheduleController@del');
  72. $route->any('scheduleGetForConstruction', 'Api\ScheduleController@scheduleGetForConstruction');
  73. $route->any('getScheduleSetting', 'Api\ScheduleController@getScheduleSetting');
  74. //排期
  75. $route->any('pq','Api\DeleteController@pq');
  76. $route->any('menuList', 'Api\SysMenuController@menuList');
  77. //设置列表
  78. $route->any('productInventorySetList', 'Api\ProductInventoryController@productInventorySetList');
  79. $route->any('getMySetting', 'Api\ProductInventoryController@getMySetting');
  80. $route->any('getSettingTotal', 'Api\ScheduleController@getSettingTotal');
  81. $route->any('getSettingGetDetail', 'Api\ScheduleController@getSettingGetDetail');
  82. });