Files
kiri-rpc/TestRpc.php
T
2022-09-23 18:55:46 +08:00

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);
}
}