wx.php 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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::group(['middleware'=> ['checkWx']],function ($route){
  17. //不需要账号登录的
  18. //文件上传统一方法
  19. $route->any('uploadFile', 'Api\FileUploadController@uploadFile');
  20. $route->any('saleOrderList', 'Api\WxController@saleOrderList');
  21. $route->any('checkAll', 'Api\CheckController@checkAll');
  22. //需要账号登录的
  23. //采购单
  24. $route->any('purchaseOrderList', 'Api\WxController@purchaseOrderList');
  25. $route->any('purchaseOrderEdit', 'Api\PurchaseOrderController@purchaseOrderEdit');
  26. $route->any('purchaseOrderDetail', 'Api\PurchaseOrderController@purchaseOrderDetail');
  27. $route->any('purchaseOrderAdd', 'Api\PurchaseOrderController@purchaseOrderAdd');
  28. $route->any('purchaseOrderDel', 'Api\PurchaseOrderController@purchaseOrderDel');
  29. //合同
  30. $route->any('salesOrderGet', 'Api\SalesOrderController@salesOrderGet');
  31. $route->any('salesOrderList', 'Api\SalesOrderController@salesOrderList');
  32. $route->any('salesOrderEdit', 'Api\SalesOrderController@salesOrderEdit');
  33. $route->any('salesOrderDetail', 'Api\SalesOrderController@salesOrderDetail');
  34. $route->any('salesOrderAdd', 'Api\SalesOrderController@salesOrderAdd');
  35. $route->any('salesOrderDel', 'Api\SalesOrderController@salesOrderDel');
  36. $route->any('constructionGet', 'Api\ConstructionController@constructionGet');
  37. $route->any('constructionList', 'Api\ConstructionController@constructionList');
  38. $route->any('constructionEdit', 'Api\ConstructionController@constructionEdit');
  39. $route->any('constructionDetail', 'Api\ConstructionController@constructionDetail');
  40. $route->any('constructionAdd', 'Api\ConstructionController@constructionAdd');
  41. $route->any('constructionDel', 'Api\ConstructionController@constructionDel');
  42. $route->any('employeeList', 'Api\EmployeeController@employeeList');
  43. $route->any('departList', 'Api\EmployeeController@departList');
  44. $route->any('storehouseList', 'Api\StorehouseController@storehouseList');
  45. $route->any('basicTypeList', 'Api\BasicTypeController@basicTypeList');
  46. $route->any('productList', 'Api\ProductController@productList');
  47. $route->any('supplierList', 'Api\SupplierController@customerList');
  48. $route->any('customerList', 'Api\CustomerController@customerList');
  49. $route->any('sportsBagOrderList', 'Api\SportsBagController@orderList');
  50. $route->any('productAdd', 'Api\ProductController@productAdd');
  51. $route->any('productCategoryList', 'Api\ProductController@productCategoryList');
  52. //退换货
  53. $route->any('ReturnExchangeOrderList', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderList');
  54. $route->any('ReturnExchangeOrderEdit', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderEdit');
  55. $route->any('ReturnExchangeOrderDetail', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderDetail');
  56. $route->any('ReturnExchangeOrderAdd', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderAdd');
  57. $route->any('ReturnExchangeOrderDel', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderDel');
  58. });