FooterService.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. namespace App\JsonRpc;
  3. use Hyperf\RpcClient\AbstractServiceClient;
  4. class FooterService extends AbstractServiceClient implements FooterServiceInterface
  5. {
  6. /**
  7. * 定义对应服务提供者的服务名称
  8. * @var string
  9. */
  10. protected string $serviceName = 'FooterService';
  11. /**
  12. * 定义对应服务提供者的服务协议
  13. * @var string
  14. */
  15. protected string $protocol = 'jsonrpc-http';
  16. /**
  17. * @param array $data
  18. * @return mixed
  19. */
  20. public function getFooterCategory(array $data)
  21. {
  22. return $this->__request(__FUNCTION__, $data);
  23. }
  24. /**
  25. * @param array $data
  26. * @return mixed
  27. */
  28. public function addFooterCategory(array $data)
  29. {
  30. return $this->__request(__FUNCTION__, $data);
  31. }
  32. /**
  33. * @param array $data
  34. * @return mixed
  35. */
  36. public function upFooterCategory(array $data)
  37. {
  38. return $this->__request(__FUNCTION__, $data);
  39. }
  40. /**
  41. * @param array $data
  42. * @return mixed
  43. */
  44. public function delFooterCategory(array $data)
  45. {
  46. return $this->__request(__FUNCTION__, $data);
  47. }
  48. /**
  49. * @param array $data
  50. * @return mixed
  51. */
  52. public function getFooterContent(array $data)
  53. {
  54. return $this->__request(__FUNCTION__, $data);
  55. }
  56. /**
  57. * @param array $data
  58. * @return mixed
  59. */
  60. public function addFooterContent(array $data)
  61. {
  62. return $this->__request(__FUNCTION__, $data);
  63. }
  64. /**
  65. * @param array $data
  66. * @return mixed
  67. */
  68. public function upFooterContent(array $data)
  69. {
  70. return $this->__request(__FUNCTION__, $data);
  71. }
  72. /**
  73. * @param array $data
  74. * @return mixed
  75. */
  76. public function delFooterContent(array $data)
  77. {
  78. return $this->__request(__FUNCTION__, $data);
  79. }
  80. }