PublicRpcService.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?php
  2. namespace App\JsonRpc;
  3. use Hyperf\RpcClient\AbstractServiceClient;
  4. class PublicRpcService extends AbstractServiceClient implements PublicRpcServiceInterface
  5. {
  6. /**
  7. * 定义对应服务提供者的服务名称
  8. * @var string
  9. */
  10. protected string $serviceName = 'PublicRpcService';
  11. /**
  12. * 定义对应服务提供者的服务协议
  13. * @var string
  14. */
  15. protected string $protocol = 'jsonrpc-http';
  16. /**
  17. * @param array $data
  18. * @return mixed
  19. */
  20. public function getDistrictList(array $data)
  21. {
  22. return $this->__request(__FUNCTION__, $data);
  23. }
  24. /**
  25. * @param array $data
  26. * @return mixed
  27. */
  28. public function getUserLevelList(array $data)
  29. {
  30. return $this->__request(__FUNCTION__, $data);
  31. }
  32. /**
  33. * 添加等级
  34. * @param array $data
  35. * @return array
  36. */
  37. public function addUserLevel(array $data){
  38. return $this->__request(__FUNCTION__, $data);
  39. }
  40. /**
  41. * 删除等级
  42. * @param array $data
  43. * @return array
  44. */
  45. public function delUserLevel(array $data){
  46. return $this->__request(__FUNCTION__, $data);
  47. }
  48. /**
  49. * 更新等级
  50. * @param array $data
  51. * @return array
  52. */
  53. public function updateUserLevel(array $data){
  54. return $this->__request(__FUNCTION__, $data);
  55. }
  56. /**
  57. * @param array $data
  58. * @return array|mixed
  59. */
  60. public function getLetterOfComplaint(array $data){
  61. return $this->__request(__FUNCTION__, $data);
  62. }
  63. /**
  64. * @param array $data
  65. * @return array|mixed
  66. */
  67. public function addLetterOfComplaint(array $data){
  68. return $this->__request(__FUNCTION__, $data);
  69. }
  70. /**
  71. * @param array $data
  72. * @return array|mixed
  73. */
  74. public function upLetterOfComplaint(array $data){
  75. return $this->__request(__FUNCTION__, $data);
  76. }
  77. /**
  78. * @param array $data
  79. * @return array|mixed
  80. */
  81. public function userUpLetterOfComplaint(array $data){
  82. return $this->__request(__FUNCTION__, $data);
  83. }
  84. /**
  85. * @param array $data
  86. * @return array|mixed
  87. */
  88. public function getLetterOfComplaintInfo(array $data){
  89. return $this->__request(__FUNCTION__, $data);
  90. }
  91. /**
  92. * @param array $data
  93. * @return array|mixed
  94. */
  95. public function delLetterOfComplaint(array $data){
  96. return $this->__request(__FUNCTION__, $data);
  97. }
  98. /**
  99. * @param array $data
  100. * @return array|mixed
  101. */
  102. public function getLetterType(array $data){
  103. return $this->__request(__FUNCTION__, $data);
  104. }
  105. /**
  106. * @param array $data
  107. * @return array|mixed
  108. */
  109. public function upLetterType(array $data){
  110. return $this->__request(__FUNCTION__, $data);
  111. }
  112. /**
  113. * @param array $data
  114. * @return array|mixed
  115. */
  116. public function addLetterType(array $data){
  117. return $this->__request(__FUNCTION__, $data);
  118. }
  119. /**
  120. * @param array $data
  121. * @return array|mixed
  122. */
  123. public function delLetterType(array $data){
  124. return $this->__request(__FUNCTION__, $data);
  125. }
  126. /**
  127. * @param array $data
  128. * @return array|mixed
  129. */
  130. public function checkMeasure(array $data){
  131. return $this->__request(__FUNCTION__, $data);
  132. }
  133. /**
  134. * @param array $data
  135. * @return array|mixed
  136. */
  137. public function getDepartment(array $data){
  138. return $this->__request(__FUNCTION__, $data);
  139. }
  140. }