diff --git a/app/Controller/v3/OrderController.php b/app/Controller/v3/OrderController.php new file mode 100644 index 0000000..ecbb5f9 --- /dev/null +++ b/app/Controller/v3/OrderController.php @@ -0,0 +1,19 @@ +order->detail(); + return $this->success($res); + } +} \ No newline at end of file diff --git a/app/Service/v3/Implementations/OrderService.php b/app/Service/v3/Implementations/OrderService.php new file mode 100644 index 0000000..93bf500 --- /dev/null +++ b/app/Service/v3/Implementations/OrderService.php @@ -0,0 +1,12 @@ + \App\Service\v3\Implementations\HelperService::class, \App\Service\v3\Interfaces\VerifyCodeServiceInterface::class => \App\Service\v3\Implementations\VerifyCodeService::class, \App\Service\v3\Interfaces\UserBindServiceInterface::class => \App\Service\v3\Implementations\UserBindService::class, - + \App\Service\v3\Interfaces\OrderServiceInterface::class => \App\Service\v3\Implementations\OrderService::class, ]; diff --git a/config/routes.php b/config/routes.php index 3a7e042..f29d6c5 100644 --- a/config/routes.php +++ b/config/routes.php @@ -81,6 +81,7 @@ Router::addGroup('/v3/', function () { Router::post('home/appletIndex', 'App\Controller\v3\HomeController@appletIndex'); Router::post('Goods/detail', 'App\Controller\v3\GoodsController@detail'); Router::post('goodsRecommend/getByTabsForAppletIndex', 'App\Controller\v3\GoodsRecommendController@getByTabsForAppletIndex'); + Router::post('Order/detail', 'App\Controller\v3\OrderController@detail'); },['middleware' => [\App\Middleware\Auth\ApiMiddleware::class]]); // 需要登录的路由