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