1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace App\JsonRpc;
- use Hyperf\RpcClient\AbstractServiceClient;
- class CollectorService extends AbstractServiceClient implements CollectorServiceInterface
- {
-
- protected string $serviceName = 'CollectorService';
-
- protected string $protocol = 'jsonrpc-http';
-
- public function addWeb(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
-
- public function getWeb(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
-
- public function sendCrawler(array $data)
- {
- return $this->__request(__FUNCTION__, $data);
- }
- }
|