28 lines
390 B
PHP
28 lines
390 B
PHP
<?php
|
|
|
|
use Kiri\Rpc\AbstractRpcClient;
|
|
use Kiri\Rpc\Annotation\JsonRpc;
|
|
use Kiri\Rpc\JsonRpcTransporterInterface;
|
|
|
|
|
|
class TestRpc extends AbstractRpcClient
|
|
{
|
|
|
|
public string $service = '';
|
|
|
|
|
|
/**
|
|
* @param $data
|
|
* @param $nba
|
|
* @return mixed
|
|
*/
|
|
public function test($data, $nba): mixed
|
|
{
|
|
$resp = $this->send(__FUNCTION__, $data, $nba);
|
|
|
|
return json_decode($resp, true);
|
|
}
|
|
|
|
|
|
}
|