api.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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/inspection_record', 'ApiController@inspectionRecord');
  30. //全流程巡检按月查个人巡检记录
  31. Route::post('fanwei/people_record_by_month', 'ApiController@peopleRecordByMonth');
  32. //根据单位查人员列表
  33. Route::post('fanwei/get_people_by_unit', 'ApiController@getPeopleByUnit');//5
  34. //网格化人员轨迹
  35. Route::post('fanwei/get_person_travel', 'ApiController@getPersonTravel');//4
  36. //网格化巡检记录查询条件
  37. Route::post('fanwei/get_result_conition', 'ApiController@getResultConition');//7
  38. //网格化巡检记录查询
  39. Route::post('fanwei/get_result_record', 'ApiController@getResultRecord');//9
  40. //网格化巡检记录列表
  41. Route::post('fanwei/get_result_list', 'ApiController@getResultList');
  42. //网格化巡检记录列表明细
  43. Route::post('fanwei/get_result_dlist', 'ApiController@getResultDlist');//2
  44. //网格化巡检记录明细
  45. Route::post('fanwei/get_result_detail', 'ApiController@getResultDetail');//3
  46. //网格化巡检记录
  47. Route::post('fanwei/get_final_list', 'ApiController@getFinalList');//8
  48. //网格化巡检人权限
  49. Route::post('fanwei/get_role', 'ApiController@getRole');//8
  50. //巡检轨迹
  51. Route::post('fanwei/get_guiji', 'ApiController@getGuiji');//8
  52. //设备管理添加设备单位列表
  53. Route::post('fanwei/sbgl_unit_list', 'ApiController@sbglUnitList');
  54. //设备管理添加设备新设备负责人列表
  55. Route::post('fanwei/sbgl_people_list', 'ApiController@sbglPeopleList');
  56. //设备管理添加设备新设备
  57. Route::post('fanwei/sbgl_add', 'ApiController@sbglAdd');
  58. //设备管理添加设备新设备
  59. Route::post('fanwei/sbgl_detail', 'ApiController@sbglDetail');
  60. //设备管理润滑管理
  61. Route::post('fanwei/sbgl_rh_list', 'ApiController@sbglRhList');
  62. //设备管理设备调拨
  63. Route::post('fanwei/sbgl_sbdb', 'ApiController@sbglSbdb');
  64. //设备管理设备审核
  65. Route::post('fanwei/sbgl_sbsh', 'ApiController@sbglSbsh');
  66. //设备管理权限
  67. Route::post('fanwei/sbgl_role', 'ApiController@sbglRole');
  68. //获取视频信息
  69. Route::post('fanwei/get_video_info', 'ApiController@getVideoInfo');
  70. //问卷调查题目
  71. Route::post('fanwei/get_topic_list', 'ApiController@getTopicList');
  72. //问卷调查提交
  73. Route::post('fanwei/submit_topic', 'ApiController@submitTopic');
  74. //问卷调查统计
  75. Route::post('fanwei/get_topic_static', 'ApiController@getTopicStatic');
  76. //问卷调查单题列表
  77. Route::post('fanwei/get_topic_test_list', 'ApiController@getTopicTestList');
  78. //短信发送
  79. Route::post('sms/send_meeting_sms', 'SmsController@sendMeetingSms');
  80. //教育学习(洗选中的教育学习应用)
  81. // 学习效果检查统计表
  82. Route::post('report/learning_effect_check','ApiController@learningEffectCheck');
  83. // 腾讯地图逆地址解析
  84. Route::post('position_geocoder','ApiController@positionGeocoder');
  85. // 微信公众号获取文章列表
  86. Route::post('get_wechat_article_list','ApiController@getWechatArticleList');
  87. //公管公司值班日历
  88. Route::post('gggs/duty_calendar','ApiController@dutyCalendar');
  89. //公管公司值班查询
  90. Route::post('gggs/duty_search','ApiController@dutySearch');
  91. });