Browse Source

Merge branch 'phoenix' of ssh://120.24.33.109:11022/hyzjshwo/lanzu_api_hyperf into phoenix

master
weigang 5 years ago
parent
commit
4414d7d4f2
  1. 26
      app/JsonRpc/BadgeService.php
  2. 10
      app/JsonRpc/BadgeServiceInterface.php
  3. 1
      config/autoload/dependencies.php

26
app/JsonRpc/BadgeService.php

@ -0,0 +1,26 @@
<?php
namespace App\JsonRpc;
use Hyperf\RpcServer\Annotation\RpcService;
use Hyperf\Di\Annotation\Inject;
/**
* @RpcService(name="BadgeService", protocol="jsonrpc-http", server="jsonrpc-http", publishTo="")
* Class BadgeService
* @package App\JsonRpc
*/
class BadgeService implements BadgeServiceInterface
{
/**
* @Inject
* @var \App\Service\v3\Interfaces\BadgeServiceInterface
*/
protected $badgeService;
public function doByOrder($userId, $storeIds, $globalOrderId, $orderState)
{
// TODO: Implement doByOrder() method.
$this->badgeService->doByOrder($userId, $storeIds, $globalOrderId, $orderState);
}
}

10
app/JsonRpc/BadgeServiceInterface.php

@ -0,0 +1,10 @@
<?php
namespace App\JsonRpc;
interface BadgeServiceInterface
{
public function doByOrder($userId, $storeIds, $globalOrderId, $orderState);
}

1
config/autoload/dependencies.php

@ -81,6 +81,7 @@ return [
\App\Service\v3\Interfaces\AttachmentServiceInterface::class => \App\Service\v3\Implementations\AttachmentService::class, \App\Service\v3\Interfaces\AttachmentServiceInterface::class => \App\Service\v3\Implementations\AttachmentService::class,
\App\JsonRpc\PrintServiceInterface::class => \App\JsonRpc\FeieService::class, \App\JsonRpc\PrintServiceInterface::class => \App\JsonRpc\FeieService::class,
\App\JsonRpc\LocationServiceInterface::class => \App\JsonRpc\LocationService::class, \App\JsonRpc\LocationServiceInterface::class => \App\JsonRpc\LocationService::class,
\App\JsonRpc\BadgeServiceInterface::class => \App\JsonRpc\BadgeService::class,
\App\Service\v3\Interfaces\OrderStatisticsServiceInterface::class => \App\Service\v3\Implementations\OrderStatisticsService::class, \App\Service\v3\Interfaces\OrderStatisticsServiceInterface::class => \App\Service\v3\Implementations\OrderStatisticsService::class,
\App\Service\v3\Interfaces\UserRelationBindServiceInterface::class => \App\Service\v3\Implementations\UserCommunityBindService::class, \App\Service\v3\Interfaces\UserRelationBindServiceInterface::class => \App\Service\v3\Implementations\UserCommunityBindService::class,
\App\Service\v3\Interfaces\BadgeServiceInterface::class => \App\Service\v3\Implementations\BadgeService::class, \App\Service\v3\Interfaces\BadgeServiceInterface::class => \App\Service\v3\Implementations\BadgeService::class,

Loading…
Cancel
Save