AuthorityService.php 1.6 KB

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