CollectorService.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?php
  2. namespace App\JsonRpc;
  3. use Hyperf\RpcClient\AbstractServiceClient;
  4. class CollectorService extends AbstractServiceClient implements CollectorServiceInterface
  5. {
  6. /**
  7. * 定义对应服务提供者的服务名称
  8. * @var string
  9. */
  10. protected string $serviceName = 'CollectorService';
  11. /**
  12. * 定义对应服务提供者的服务协议
  13. * @var string
  14. */
  15. protected string $protocol = 'jsonrpc-http';
  16. /**
  17. * @param array $data
  18. * @return array|mixed
  19. */
  20. public function addWeb(array $data)
  21. {
  22. return $this->__request(__FUNCTION__, $data);
  23. }
  24. /**
  25. * @param array $data
  26. * @return array|mixed
  27. */
  28. public function getWeb(array $data)
  29. {
  30. return $this->__request(__FUNCTION__, $data);
  31. }
  32. /**
  33. * @param array $data
  34. * @return array|mixed
  35. */
  36. public function upWeb(array $data)
  37. {
  38. return $this->__request(__FUNCTION__, $data);
  39. }
  40. /**
  41. * @param array $data
  42. * @return array|mixed
  43. */
  44. public function delWeb(array $data)
  45. {
  46. return $this->__request(__FUNCTION__, $data);
  47. }
  48. /**
  49. * @param array $data
  50. * @return array|mixed
  51. */
  52. public function addRule(array $data)
  53. {
  54. return $this->__request(__FUNCTION__, $data);
  55. }
  56. /**
  57. * @param array $data
  58. * @return array|mixed
  59. */
  60. public function getRule(array $data)
  61. {
  62. return $this->__request(__FUNCTION__, $data);
  63. }
  64. /**
  65. * @param array $data
  66. * @return array|mixed
  67. */
  68. public function getOneRule(array $data)
  69. {
  70. return $this->__request(__FUNCTION__, $data);
  71. }
  72. /**
  73. * @param array $data
  74. * @return array|mixed
  75. */
  76. public function upRule(array $data)
  77. {
  78. return $this->__request(__FUNCTION__, $data);
  79. }
  80. /**
  81. * @param array $data
  82. * @return array|mixed
  83. */
  84. public function delRule(array $data)
  85. {
  86. return $this->__request(__FUNCTION__, $data);
  87. }
  88. /**
  89. * @param array $data
  90. * @return array|mixed
  91. */
  92. public function sendCrawler(array $data)
  93. {
  94. return $this->__request(__FUNCTION__, $data);
  95. }
  96. /**
  97. * @param array $data
  98. * @return array|mixed
  99. */
  100. public function getInfo(array $data)
  101. {
  102. return $this->__request(__FUNCTION__, $data);
  103. }
  104. /**
  105. * @param array $data
  106. * @return array|mixed
  107. */
  108. public function getOneInfo(array $data)
  109. {
  110. return $this->__request(__FUNCTION__, $data);
  111. }
  112. /**
  113. * @param array $data
  114. * @return array|mixed
  115. */
  116. public function upInfo(array $data)
  117. {
  118. return $this->__request(__FUNCTION__, $data);
  119. }
  120. /**
  121. * @param array $data
  122. * @return array|mixed
  123. */
  124. public function delInfo(array $data)
  125. {
  126. return $this->__request(__FUNCTION__, $data);
  127. }
  128. /**
  129. * @param array $data
  130. * @return array|mixed
  131. */
  132. public function addCatid(array $data)
  133. {
  134. return $this->__request(__FUNCTION__, $data);
  135. }
  136. /**
  137. * @param array $data
  138. * @return array|mixed
  139. */
  140. public function addArt(array $data)
  141. {
  142. return $this->__request(__FUNCTION__, $data);
  143. }
  144. }