This commit is contained in:
2021-10-28 17:11:20 +08:00
parent b68fc5de60
commit 9269a1a23e
4 changed files with 5 additions and 11 deletions
+2 -5
View File
@@ -25,12 +25,7 @@ class GiiJsonRpc extends GiiBase
namespace Rpc;
use Annotation\Mapping;
use Annotation\Target;
use Rpc\Producers\\' . ucfirst($name) . 'RpcService;
#[Target]
#[Mapping(' . ucfirst($name) . 'RpcService::class)]
interface ' . ucfirst($name) . 'RpcInterface
{
@@ -58,12 +53,14 @@ namespace Rpc\Producers;
use Annotation\Target;
use Annotation\Mapping;
use Rpc\\' . ucfirst($name) . 'RpcInterface;
use Exception;
use Kiri\Rpc\JsonRpcConsumers;
#[Target]
#[Mapping(' . ucfirst($name) . 'RpcInterface::class)]
class ' . ucfirst($name) . 'RpcService extends JsonRpcConsumers implements ' . ucfirst($name) . 'RpcInterface
{