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.
49 lines
2.7 KiB
49 lines
2.7 KiB
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* This file is part of Hyperf.
|
|
*
|
|
* @link https://www.hyperf.io
|
|
* @document https://doc.hyperf.io
|
|
* @contact group@hyperf.io
|
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
|
*/
|
|
use Hyperf\HttpServer\Router\Router;
|
|
|
|
Router::addRoute(['GET', 'POST', 'HEAD'], '/', 'App\Controller\IndexController@index');
|
|
|
|
Router::addGroup('/v1/',function (){
|
|
Router::post('CouponUser/getSystemCouponUserList', 'App\Controller\CouponController@getSystemCouponUserList');
|
|
Router::post('CouponUser/userCouponAccount', 'App\Controller\CouponController@userCouponAccount');
|
|
Router::post('CouponUserReceive/getUserReceiveCouponList', 'App\Controller\CouponController@getUserReceiveCouponList');
|
|
Router::post('CouponUserReceive/userReceiveCoupon', 'App\Controller\CouponController@userReceiveCoupon');
|
|
Router::post('CouponUserReceive/getUserAvailableCoupons', 'App\Controller\CouponController@getUserAvailableCoupons');
|
|
Router::post('ServiceEvaluate/evaluate', 'App\Controller\ServiceEvaluateController@evaluate');
|
|
Router::post('ServiceEvaluate/isPersonnel', 'App\Controller\ServiceEvaluateController@isPersonnel');
|
|
Router::post('ServiceEvaluate/getPersonnelInfo', 'App\Controller\ServiceEvaluateController@getPersonnelInfo');
|
|
Router::post('ServiceEvaluate/getEvaluateList', 'App\Controller\ServiceEvaluateController@getEvaluateList');
|
|
Router::post('Attachment/uploadImage', 'App\Controller\AttachmentController@uploadImage');
|
|
Router::post('Attachment/uploadImageByBase64', 'App\Controller\AttachmentController@uploadImageByBase64');
|
|
Router::post('Attachment/upload', 'App\Controller\AttachmentController@upload');
|
|
Router::post('ParamsToken/generate', 'App\Controller\ParamsTokenController@generate');
|
|
Router::post('ParamsToken/analyze', 'App\Controller\ParamsTokenController@analyze');
|
|
|
|
//播报器相关
|
|
Router::post('Device/bind', 'App\Controller\DeviceController@bind');
|
|
Router::post('Device/list', 'App\Controller\DeviceController@list');
|
|
Router::post('Device/unbind', 'App\Controller\DeviceController@unbind');
|
|
|
|
//测试路由
|
|
Router::get('test/index1', 'App\Controller\TestController@index1');
|
|
|
|
//订单相关
|
|
Router::post('Order/addOnline', 'App\Controller\OrderController@addOnlineOrder');
|
|
|
|
//小程序支付相关
|
|
Router::post('wxminipay/online', 'App\Controller\PaymentController@wxminiPayOnline');
|
|
Router::post('wxminipay/offline', 'App\Controller\PaymentController@wxminiPayOffline');
|
|
Router::post('notify/wxminionline', 'App\Controller\NotifyController@wxminiOnline');
|
|
Router::post('notify/wxminioffline', 'App\Controller\NotifyController@wxminiOffline');
|
|
|
|
});
|