OrderService.php 603 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\JsonRpc;
  3. use Hyperf\RpcClient\AbstractServiceClient;
  4. class OrderService extends AbstractServiceClient implements OrderServiceInterface
  5. {
  6. /**
  7. * 定义对应服务提供者的服务名称
  8. * @var string
  9. */
  10. protected string $serviceName = 'OrderService';
  11. /**
  12. * 定义对应服务提供者的服务协议
  13. * @var string
  14. */
  15. protected string $protocol = 'jsonrpc-http';
  16. /**
  17. * @param array $data
  18. * @return mixed
  19. */
  20. public function getAD(array $data)
  21. {
  22. return $this->__request(__FUNCTION__, $data);
  23. }
  24. }