You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
2.7 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of Hyperf.
  5. *
  6. * @link https://www.hyperf.io
  7. * @document https://doc.hyperf.io
  8. * @contact group@hyperf.io
  9. * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
  10. */
  11. use Hyperf\HttpServer\Router\Router;
  12. Router::addRoute(['GET', 'POST', 'HEAD'], '/', 'App\Controller\IndexController@index');
  13. Router::addGroup('/v1/',function (){
  14. Router::post('CouponUser/getSystemCouponUserList', 'App\Controller\CouponController@getSystemCouponUserList');
  15. Router::post('CouponUser/userCouponAccount', 'App\Controller\CouponController@userCouponAccount');
  16. Router::post('CouponUserReceive/getUserReceiveCouponList', 'App\Controller\CouponController@getUserReceiveCouponList');
  17. Router::post('CouponUserReceive/userReceiveCoupon', 'App\Controller\CouponController@userReceiveCoupon');
  18. Router::post('CouponUserReceive/getUserAvailableCoupons', 'App\Controller\CouponController@getUserAvailableCoupons');
  19. Router::post('ServiceEvaluate/evaluate', 'App\Controller\ServiceEvaluateController@evaluate');
  20. Router::post('ServiceEvaluate/isPersonnel', 'App\Controller\ServiceEvaluateController@isPersonnel');
  21. Router::post('ServiceEvaluate/getPersonnelInfo', 'App\Controller\ServiceEvaluateController@getPersonnelInfo');
  22. Router::post('ServiceEvaluate/getEvaluateList', 'App\Controller\ServiceEvaluateController@getEvaluateList');
  23. Router::post('Attachment/uploadImage', 'App\Controller\AttachmentController@uploadImage');
  24. Router::post('Attachment/uploadImageByBase64', 'App\Controller\AttachmentController@uploadImageByBase64');
  25. Router::post('Attachment/upload', 'App\Controller\AttachmentController@upload');
  26. Router::post('ParamsToken/generate', 'App\Controller\ParamsTokenController@generate');
  27. Router::post('ParamsToken/analyze', 'App\Controller\ParamsTokenController@analyze');
  28. //播报器相关
  29. Router::post('Device/bind', 'App\Controller\DeviceController@bind');
  30. Router::post('Device/list', 'App\Controller\DeviceController@list');
  31. Router::post('Device/unbind', 'App\Controller\DeviceController@unbind');
  32. //测试路由
  33. Router::get('test/index1', 'App\Controller\TestController@index1');
  34. //订单相关
  35. Router::post('Order/addOnline', 'App\Controller\OrderController@addOnlineOrder');
  36. //小程序支付相关
  37. Router::post('wxminipay/online', 'App\Controller\PaymentController@wxminiPayOnline');
  38. Router::post('wxminipay/offline', 'App\Controller\PaymentController@wxminiPayOffline');
  39. Router::post('notify/wxminionline', 'App\Controller\NotifyController@wxminiOnline');
  40. Router::post('notify/wxminioffline', 'App\Controller\NotifyController@wxminiOffline');
  41. });