api.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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('/admin', function (Request $request) {
  14. return $request->user();
  15. });
  16. Route::namespace('Api')->group(function () {
  17. //获取api认证token
  18. Route::post('oauth/token', 'TokenController@token');
  19. Route::post('check_token', 'TokenController@checkToken');
  20. //整改人列表
  21. Route::post('fanwei/zgr_list', 'ApiController@zgrList');//0
  22. //网格化录入
  23. Route::post('fanwei/add_conition', 'ApiController@addConition');//1
  24. //网格化整改
  25. Route::post('fanwei/edit_conition', 'ApiController@editConition');//1
  26. //网格化人员轨迹查询条件
  27. Route::post('fanwei/get_query_conition', 'ApiController@getQueryConition');//5
  28. //网格化人员轨迹
  29. Route::post('fanwei/get_person_travel', 'ApiController@getPersonTravel');//4
  30. //网格化巡检记录查询条件
  31. Route::post('fanwei/get_result_conition', 'ApiController@getResultConition');//7
  32. //网格化巡检记录查询
  33. Route::post('fanwei/get_result_record', 'ApiController@getResultRecord');//9
  34. //网格化巡检记录列表
  35. Route::post('fanwei/get_result_list', 'ApiController@getResultList');
  36. //网格化巡检记录列表明细
  37. Route::post('fanwei/get_result_dlist', 'ApiController@getResultDlist');//2
  38. //网格化巡检记录明细
  39. Route::post('fanwei/get_result_detail', 'ApiController@getResultDetail');//3
  40. //网格化巡检记录
  41. Route::post('fanwei/get_final_list', 'ApiController@getFinalList');//8
  42. //网格化巡检人权限
  43. Route::post('fanwei/get_role', 'ApiController@getRole');//8
  44. //设备管理添加设备单位列表
  45. Route::post('fanwei/sbgl_unit_list', 'ApiController@sbglUnitList');
  46. //设备管理添加设备新设备负责人列表
  47. Route::post('fanwei/sbgl_people_list', 'ApiController@sbglPeopleList');
  48. //设备管理添加设备新设备
  49. Route::post('fanwei/sbgl_add', 'ApiController@sbglAdd');
  50. //设备管理添加设备新设备
  51. Route::post('fanwei/sbgl_detail', 'ApiController@sbglDetail');
  52. //设备管理润滑管理
  53. Route::post('fanwei/sbgl_rh_list', 'ApiController@sbglRhList');
  54. //设备管理设备调拨
  55. Route::post('fanwei/sbgl_sbdb', 'ApiController@sbglSbdb');
  56. //设备管理设备审核
  57. Route::post('fanwei/sbgl_sbsh', 'ApiController@sbglSbsh');
  58. //设备管理权限
  59. Route::post('fanwei/sbgl_role', 'ApiController@sbglRole');
  60. //短信发送
  61. Route::post('sms/send_meeting_sms', 'SmsController@sendMeetingSms');
  62. //教育学习(洗选中的教育学习应用)
  63. // 学习效果检查统计表
  64. Route::post('report/learning_effect_check','ApiController@learningEffectCheck');
  65. });