api.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. /** @var TYPE_NAME $api */
  14. $api = app('Dingo\Api\Routing\Router');
  15. $api->version('v1',[
  16. 'namespace'=>'App\Http\Controllers'
  17. ],function ($api){
  18. $api->get('wechatLogin','LoginController@wechatLogin');
  19. $api->post('data_or','UserController@data_or');
  20. $api->post('data_orls','UserController@data_orls');
  21. $api->post('data_oruser','UserController@data_oruser');
  22. $api->get('SendSms','LoginController@SendSms');
  23. $api->post('LoginSms','LoginController@LoginSms');
  24. $api->group(['middleware' => 'check_token'], function ($api) {
  25. $api->post('user/getuserinfo','UserController@GetUserInfo');
  26. $api->post('user/GetUserSignStatus','UserController@GetUserSignStatus');
  27. $api->group(['prefix'=>'','namespace'=>'HuiFu'], function ($api) {
  28. $api->group(['prefix' => 'HuiFu'], function ($api) {
  29. $api->get('/check','HuiFuController@check');//检查是否上传信息
  30. $api->post('/QuickBankApply','HuiFuController@QuickBankApply');//绑卡申请
  31. $api->post('/QuickBankConfirm','HuiFuController@QuickBankConfirm');//绑卡确认
  32. $api->post('/QuickBankPay','HuiFuController@QuickBankPay');//支付申请
  33. $api->post('/QuickBankSms','HuiFuController@QuickBankSms');//支付确认
  34. $api->post('/CheckStatus','HuiFuController@CheckStatus');//支付状态查询
  35. $api->post('/UnbindBank','HuiFuController@UnbindBank');//支付状态查询
  36. $api->post('/BankInfo','HuiFuController@BankInfo');//支付状态查询
  37. });
  38. });
  39. });
  40. });