api.php 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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/get_guiji', 'ApiController@getGuiji');//8
  46. //设备管理添加设备单位列表
  47. Route::post('fanwei/sbgl_unit_list', 'ApiController@sbglUnitList');
  48. //设备管理添加设备新设备负责人列表
  49. Route::post('fanwei/sbgl_people_list', 'ApiController@sbglPeopleList');
  50. //设备管理添加设备新设备
  51. Route::post('fanwei/sbgl_add', 'ApiController@sbglAdd');
  52. //设备管理添加设备新设备
  53. Route::post('fanwei/sbgl_detail', 'ApiController@sbglDetail');
  54. //设备管理润滑管理
  55. Route::post('fanwei/sbgl_rh_list', 'ApiController@sbglRhList');
  56. //设备管理设备调拨
  57. Route::post('fanwei/sbgl_sbdb', 'ApiController@sbglSbdb');
  58. //设备管理设备审核
  59. Route::post('fanwei/sbgl_sbsh', 'ApiController@sbglSbsh');
  60. //设备管理权限
  61. Route::post('fanwei/sbgl_role', 'ApiController@sbglRole');
  62. //获取视频信息
  63. Route::post('fanwei/get_video_info', 'ApiController@getVideoInfo');
  64. //问卷调查题目
  65. Route::post('fanwei/get_topic_list', 'ApiController@getTopicList');
  66. //问卷调查提交
  67. Route::post('fanwei/submit_topic', 'ApiController@submitTopic');
  68. //问卷调查统计
  69. Route::post('fanwei/get_topic_static', 'ApiController@getTopicStatic');
  70. //问卷调查单题列表
  71. Route::post('fanwei/get_topic_test_list', 'ApiController@getTopicTestList');
  72. //短信发送
  73. Route::post('sms/send_meeting_sms', 'SmsController@sendMeetingSms');
  74. //教育学习(洗选中的教育学习应用)
  75. // 学习效果检查统计表
  76. Route::post('report/learning_effect_check','ApiController@learningEffectCheck');
  77. // 腾讯地图逆地址解析
  78. Route::post('position_geocoder','ApiController@positionGeocoder');
  79. // 微信公众号获取文章列表
  80. Route::post('get_wechat_article_list','ApiController@getWechatArticleList');
  81. //公管公司值班日历
  82. Route::post('gggs/duty_calendar','ApiController@dutyCalendar');
  83. //公管公司值班查询
  84. Route::post('gggs/duty_search','ApiController@dutySearch');
  85. });