1234567891011121314151617181920212223242526272829 |
- <?php
- namespace App\JsonRpc;
- use Hyperf\RpcClient\AbstractServiceClient;
- class OrderService extends AbstractServiceClient implements OrderServiceInterface
- {
- /**
- * 定义对应服务提供者的服务名称
- * @var string
- */
- protected string $serviceName = 'OrderService';
- /**
- * 定义对应服务提供者的服务协议
- * @var string
- */
- protected string $protocol = 'jsonrpc-http';
- /**
- * @param array $data
- * @return mixed
- */
- public function getAD(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
- }
|