api.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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/sbgl_unit_list', 'ApiController@sbglUnitList');
  44. //设备管理添加设备新设备负责人列表
  45. Route::post('fanwei/sbgl_people_list', 'ApiController@sbglPeopleList');
  46. //设备管理添加设备新设备
  47. Route::post('fanwei/sbgl_add', 'ApiController@sbglAdd');
  48. //设备管理添加设备新设备
  49. Route::post('fanwei/sbgl_detail', 'ApiController@sbglDetail');
  50. //设备管理润滑管理
  51. Route::post('fanwei/sbgl_rh_list', 'ApiController@sbglRhList');
  52. //设备管理设备调拨
  53. Route::post('fanwei/sbgl_sbdb', 'ApiController@sbglSbdb');
  54. //短信发送
  55. Route::post('sms/send_meeting_sms', 'SmsController@sendMeetingSms');
  56. });