route.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /*
  3. * @Descripttion:
  4. * @version: 1.0.0
  5. * @Author: likang
  6. * @Date: 2022-05-27 13:34:31
  7. * @LastEditors: likang
  8. * @LastEditTime: 2022-08-03 10:56:38
  9. */
  10. // +----------------------------------------------------------------------
  11. // | CatchAdmin [Just Like ~ ]
  12. // +----------------------------------------------------------------------
  13. // | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
  14. // +----------------------------------------------------------------------
  15. // | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
  16. // +----------------------------------------------------------------------
  17. // | Author: JaguarJack [ njphper@gmail.com ]
  18. // +----------------------------------------------------------------------
  19. // you should use `$router`
  20. $router->group(function () use ($router) {
  21. // hydraulic路由
  22. $router->resource('hydraulic', '\catchAdmin\hydraulic\controller\Hydraulic');
  23. // deviceMold路由
  24. $router->resource('deviceMold', '\catchAdmin\hydraulic\controller\DeviceMold');
  25. $router->get('get_device_mold', '\catchAdmin\hydraulic\controller\DeviceMold@getDeviceMold');
  26. // wrench路由
  27. $router->resource('wrench', '\catchAdmin\hydraulic\controller\Wrench');
  28. //获取维保记录映射
  29. $router->get('get_mainten_option', '\catchAdmin\hydraulic\controller\Maintenance@getMaintenOption');
  30. $router->resource('maintenance_mapper', '\catchAdmin\hydraulic\controller\Maintenance');
  31. // 扳手校验路由
  32. $router->resource('wrenchCheckRecord', '\catchAdmin\hydraulic\controller\WrenchCheckRecord');
  33. $router->get('wrenchCheckRecordData', '\catchAdmin\hydraulic\controller\WrenchCheckRecord@decordDataList');
  34. // 液压设备路由
  35. $router->resource('hydEquipment', '\catchAdmin\hydraulic\controller\HydEquipment');
  36. //导入设备列表
  37. $router->post('importHydExcel', '\catchAdmin\hydraulic\controller\HydEquipment@importExcel');
  38. //查看上传日志列表SelectLogByImei
  39. $router->get('selectLogByImei', '\catchAdmin\hydraulic\controller\HydEquipment@SelectLogByImei');
  40. //查看日志详情
  41. $router->get('getLogDetail', '\catchAdmin\hydraulic\controller\HydEquipment@getLogDetail');
  42. //获取类型获取设备
  43. $router->get('getAllHydEqu', '\catchAdmin\hydraulic\controller\HydEquipment@getAllHydEqu');
  44. //获取所有设备状态字典
  45. $router->get('getHydEquipmentType', '\catchAdmin\hydraulic\controller\HydEquipment@getHydEquipmentType');
  46. //智能仓储路由
  47. $router->resource('storageEquipment', '\catchAdmin\hydraulic\controller\StorageEquipment');
  48. $router->get('getTotalByEquipmentType', '\catchAdmin\hydraulic\controller\HydEquipment@getTotalByEquipmentType');
  49. })->middleware('auth');