api.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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/ready_add', 'ApiController@readyAdd');
  44. //短信发送
  45. Route::post('sms/send_meeting_sms', 'SmsController@sendMeetingSms');
  46. });