PublicRpcService.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. {
  39. return $this->__request(__FUNCTION__, $data);
  40. }
  41. /**
  42. * 删除等级
  43. * @param array $data
  44. * @return array
  45. */
  46. public function delUserLevel(array $data)
  47. {
  48. return $this->__request(__FUNCTION__, $data);
  49. }
  50. /**
  51. * 更新等级
  52. * @param array $data
  53. * @return array
  54. */
  55. public function updateUserLevel(array $data)
  56. {
  57. return $this->__request(__FUNCTION__, $data);
  58. }
  59. /**
  60. * @param array $data
  61. * @return array|mixed
  62. */
  63. public function getLetterOfComplaint(array $data)
  64. {
  65. return $this->__request(__FUNCTION__, $data);
  66. }
  67. /**
  68. * @param array $data
  69. * @return array|mixed
  70. */
  71. public function addLetterOfComplaint(array $data)
  72. {
  73. return $this->__request(__FUNCTION__, $data);
  74. }
  75. /**
  76. * @param array $data
  77. * @return array|mixed
  78. */
  79. public function upLetterOfComplaint(array $data)
  80. {
  81. return $this->__request(__FUNCTION__, $data);
  82. }
  83. /**
  84. * @param array $data
  85. * @return array|mixed
  86. */
  87. public function userUpLetterOfComplaint(array $data)
  88. {
  89. return $this->__request(__FUNCTION__, $data);
  90. }
  91. /**
  92. * @param array $data
  93. * @return array|mixed
  94. */
  95. public function getLetterOfComplaintInfo(array $data)
  96. {
  97. return $this->__request(__FUNCTION__, $data);
  98. }
  99. /**
  100. * @param array $data
  101. * @return array|mixed
  102. */
  103. public function delLetterOfComplaint(array $data)
  104. {
  105. return $this->__request(__FUNCTION__, $data);
  106. }
  107. /**
  108. * @param array $data
  109. * @return array|mixed
  110. */
  111. public function getLetterType(array $data)
  112. {
  113. return $this->__request(__FUNCTION__, $data);
  114. }
  115. /**
  116. * @param array $data
  117. * @return array|mixed
  118. */
  119. public function upLetterType(array $data)
  120. {
  121. return $this->__request(__FUNCTION__, $data);
  122. }
  123. /**
  124. * @param array $data
  125. * @return array|mixed
  126. */
  127. public function addLetterType(array $data)
  128. {
  129. return $this->__request(__FUNCTION__, $data);
  130. }
  131. /**
  132. * @param array $data
  133. * @return array|mixed
  134. */
  135. public function delLetterType(array $data)
  136. {
  137. return $this->__request(__FUNCTION__, $data);
  138. }
  139. /**
  140. * @param array $data
  141. * @return array|mixed
  142. */
  143. public function checkMeasure(array $data)
  144. {
  145. return $this->__request(__FUNCTION__, $data);
  146. }
  147. /**
  148. * @param array $data
  149. * @return array|mixed
  150. */
  151. public function getDepartment(array $data)
  152. {
  153. return $this->__request(__FUNCTION__, $data);
  154. }
  155. /**
  156. * @param array $data
  157. * @return array|mixed
  158. */
  159. public function getZhinengbumenList(array $data)
  160. {
  161. return $this->__request(__FUNCTION__, $data);
  162. }
  163. /**
  164. * @param array $data
  165. * @return array|mixed
  166. */
  167. public function addZhinengbumen(array $data)
  168. {
  169. return $this->__request(__FUNCTION__, $data);
  170. }
  171. /**
  172. * @param array $data
  173. * @return array|mixed
  174. */
  175. public function getZhinengbumen(array $data)
  176. {
  177. return $this->__request(__FUNCTION__, $data);
  178. }
  179. /**
  180. * @param array $data
  181. * @return array|mixed
  182. */
  183. public function getPidZhinengbumen(array $data)
  184. {
  185. return $this->__request(__FUNCTION__, $data);
  186. }
  187. /**
  188. * @param array $data
  189. * @return array|mixed
  190. */
  191. public function delZhinengbumen(array $data)
  192. {
  193. return $this->__request(__FUNCTION__, $data);
  194. }
  195. /**
  196. * @param array $data
  197. * @return array|mixed
  198. */
  199. public function modZhinengbumen(array $data)
  200. {
  201. return $this->__request(__FUNCTION__, $data);
  202. }
  203. /**
  204. * @param array $data
  205. * @return array|mixed
  206. */
  207. public function getBuckets(array $data)
  208. {
  209. return $this->__request(__FUNCTION__, $data);
  210. }
  211. /**
  212. * @param array $data
  213. * @return array|mixed
  214. */
  215. public function uploadFile(array $data)
  216. {
  217. return $this->__request(__FUNCTION__, $data);
  218. }
  219. }