src/Leevel/Protocol/Client/Rpc.php
protected function getResponseWithProtocol(TBinaryProtocol $protocol, array $data): Response
    {
        $client = new ThriftClient($protocol);

        $message = new Request($data);

        return $client->call($message);
    }
protected function getResponseWithProtocol(TBinaryProtocol $protocol, array $data): Response
    {
        $client = new ThriftClient($protocol);

        $message = new Request($data);

        return $client->call($message);
    }
根据协议返回响应.

@param \Thrift\Protocol\TBinaryProtocol $protocol
@param array                            $data

@return \Leevel\Protocol\Thrift\Service\Response