变更
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user