Browse Source

更新购物车接口初始化

master
Lemon 6 years ago
parent
commit
899803590d
  1. 21
      app/Controller/v3/UpdateShopCartController.php
  2. 2
      app/Service/v3/Implementations/OnlineOrderService.php
  3. 23
      app/Service/v3/Implementations/UpdateShopCartService.php
  4. 12
      app/Service/v3/Interfaces/UpdateShopCartServiceInterface.php
  5. 2
      config/autoload/dependencies.php

21
app/Controller/v3/UpdateShopCartController.php

@ -0,0 +1,21 @@
<?php
namespace App\Controller\v3;
use App\Controller\BaseController;
class UpdateShopCartController extends BaseController
{
public function do()
{
}
public function check(){
}
public function undo(){
}
}

2
app/Service/v3/Implementations/OnlineOnlineOrderService.php → app/Service/v3/Implementations/OnlineOrderService.php

@ -4,7 +4,7 @@ namespace App\Service\v3\Implementations;
use Hyperf\Di\Annotation\Inject;
use App\Service\v3\Interfaces\OnlineOrderServiceInterface;
class OnlineOnlineOrderService implements OnlineOrderServiceInterface
class OnlineOrderService implements OnlineOrderServiceInterface
{
public function do($params){
return [];

23
app/Service/v3/Implementations/UpdateShopCartService.php

@ -0,0 +1,23 @@
<?php
namespace App\Service\v3\Implementations;
use App\Service\v3\Interfaces\UpdateShopCartServiceInterface;
class UpdateShopCartService implements UpdateShopCartServiceInterface
{
public function do()
{
// TODO: Implement check() method.
}
public function check()
{
// TODO: Implement check() method.
}
public function undo()
{
// TODO: Implement undo() method.
}
}

12
app/Service/v3/Interfaces/UpdateShopCartServiceInterface.php

@ -0,0 +1,12 @@
<?php
namespace App\Service\v3\Interfaces;
interface UpdateShopCartServiceInterface
{
public function do();
public function check();
public function undo();
}

2
config/autoload/dependencies.php

@ -40,7 +40,7 @@ return [
\App\Service\v3\Interfaces\HelperServiceInterface::class => \App\Service\v3\Implementations\HelperService::class,
\App\Service\v3\Interfaces\VerifyCodeServiceInterface::class => \App\Service\v3\Implementations\VerifyCodeService::class,
\App\Service\v3\Interfaces\UserBindTelServiceInterface::class => \App\Service\v3\Implementations\UserBindTelService::class,
\App\Service\v3\Interfaces\OnlineOrderServiceInterface::class => \App\Service\v3\Implementations\OnlineOnlineOrderService::class,
\App\Service\v3\Interfaces\OnlineOrderServiceInterface::class => \App\Service\v3\Implementations\OnlineOrderService::class,
\App\Service\v3\Interfaces\DistributionPriceServiceInterface::class => \App\Service\v3\Implementations\DistributionPriceService::class,
\App\Service\v3\Interfaces\AppointmentTimeServiceInterface::class => \App\Service\v3\Implementations\AppointmentTimeService::class,
\App\Service\v3\Interfaces\CategoryServiceInterface::class => \App\Service\v3\Implementations\CategoryService::class,

Loading…
Cancel
Save