ChatService.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <?php
  2. namespace App\JsonRpc;
  3. use Hyperf\RpcClient\AbstractServiceClient;
  4. class ChatService extends AbstractServiceClient implements ChatServiceInterface
  5. {
  6. /**
  7. * 定义对应服务提供者的服务名称
  8. * @var string
  9. */
  10. protected string $serviceName = 'ChatService';
  11. /**
  12. * 定义对应服务提供者的服务协议
  13. * @var string
  14. */
  15. protected string $protocol = 'jsonrpc-http';
  16. /**
  17. * 添加申请
  18. * @param array $data
  19. * @return mixed
  20. */
  21. public function addFriend(array $data): mixed
  22. {
  23. return $this->__request(__FUNCTION__, $data);
  24. }
  25. public function getFriendsList(array $data)
  26. {
  27. return $this->__request(__FUNCTION__, $data);
  28. }
  29. public function applyFriend(array $data)
  30. {
  31. return $this->__request(__FUNCTION__, $data);
  32. }
  33. public function delFriend(array $data)
  34. {
  35. return $this->__request(__FUNCTION__, $data);
  36. }
  37. public function getFriendInfo(array $data)
  38. {
  39. return $this->__request(__FUNCTION__, $data);
  40. }
  41. public function isFriend(array $data)
  42. {
  43. return $this->__request(__FUNCTION__, $data);
  44. }
  45. public function updateFriend(array $data)
  46. {
  47. return $this->__request(__FUNCTION__, $data);
  48. }
  49. public function searchFriend(array $data)
  50. {
  51. return $this->__request(__FUNCTION__, $data);
  52. }
  53. public function addChatRecords(array $data)
  54. {
  55. return $this->__request(__FUNCTION__, $data);
  56. }
  57. public function getChatRecords(array $data)
  58. {
  59. return $this->__request(__FUNCTION__, $data);
  60. }
  61. public function getConversation(array $data)
  62. {
  63. return $this->__request(__FUNCTION__, $data);
  64. }
  65. public function getGroupMembers(array $data)
  66. {
  67. return $this->__request(__FUNCTION__, $data);
  68. }
  69. public function getGroupInfo(array $data)
  70. {
  71. return $this->__request(__FUNCTION__, $data);
  72. }
  73. public function getGroupList(array $data)
  74. {
  75. return $this->__request(__FUNCTION__, $data);
  76. }
  77. public function addGroup(array $data)
  78. {
  79. return $this->__request(__FUNCTION__, $data);
  80. }
  81. public function addGroupMembers(array $data)
  82. {
  83. return $this->__request(__FUNCTION__, $data);
  84. }
  85. public function delGroupMember(array $data)
  86. {
  87. return $this->__request(__FUNCTION__, $data);
  88. }
  89. public function getChatGroupList(array $data)
  90. {
  91. return $this->__request(__FUNCTION__, $data);
  92. }
  93. public function getFriendsApplyList(array $data)
  94. {
  95. return $this->__request(__FUNCTION__, $data);
  96. }
  97. public function updateGroup(array $data)
  98. {
  99. return $this->__request(__FUNCTION__, $data);
  100. }
  101. public function quitGroup(array $data)
  102. {
  103. return $this->__request(__FUNCTION__, $data);
  104. }
  105. public function joinGroup(array $data)
  106. {
  107. return $this->__request(__FUNCTION__, $data);
  108. }
  109. public function getGroupApplyList(array $data)
  110. {
  111. return $this->__request(__FUNCTION__, $data);
  112. }
  113. public function delGroup(array $data)
  114. {
  115. return $this->__request(__FUNCTION__, $data);
  116. }
  117. public function delGroupMembers(array $data)
  118. {
  119. return $this->__request(__FUNCTION__, $data);
  120. }
  121. public function getGroupMemberInfo(array $data)
  122. {
  123. return $this->__request(__FUNCTION__, $data);
  124. }
  125. public function getTopicsList(array $data)
  126. {
  127. return $this->__request(__FUNCTION__, $data);
  128. }
  129. public function addTopic(array $data)
  130. {
  131. return $this->__request(__FUNCTION__, $data);
  132. }
  133. public function updateTopic(array $data)
  134. {
  135. return $this->__request(__FUNCTION__, $data);
  136. }
  137. public function delTopic(array $data)
  138. {
  139. return $this->__request(__FUNCTION__, $data);
  140. }
  141. public function getTopicInfo(array $data)
  142. {
  143. return $this->__request(__FUNCTION__, $data);
  144. }
  145. public function addReply(array $data)
  146. {
  147. return $this->__request(__FUNCTION__, $data);
  148. }
  149. public function getTopicReply(array $data)
  150. {
  151. return $this->__request(__FUNCTION__, $data);
  152. }
  153. public function getGroupChatRecords(array $data)
  154. {
  155. return $this->__request(__FUNCTION__, $data);
  156. }
  157. public function updateGroupMembers(array $data)
  158. {
  159. return $this->__request(__FUNCTION__, $data);
  160. }
  161. public function clearRecords(array $data)
  162. {
  163. return $this->__request(__FUNCTION__, $data);
  164. }
  165. public function recallRecord(array $data)
  166. {
  167. return $this->__request(__FUNCTION__, $data);
  168. }
  169. public function clearGroupRecords(array $data)
  170. {
  171. return $this->__request(__FUNCTION__, $data);
  172. }
  173. public function delRecords(array $data)
  174. {
  175. return $this->__request(__FUNCTION__, $data);
  176. }
  177. public function getRecord(array $data)
  178. {
  179. return $this->__request(__FUNCTION__, $data);
  180. }
  181. public function delReply(array $data)
  182. {
  183. return $this->__request(__FUNCTION__, $data);
  184. }
  185. public function delAllReply(array $data)
  186. {
  187. return $this->__request(__FUNCTION__, $data);
  188. }
  189. public function getTopicsListAdmin(array $data)
  190. {
  191. return $this->__request(__FUNCTION__, $data);
  192. }
  193. public function applyTopic(array $data)
  194. {
  195. return $this->__request(__FUNCTION__, $data);
  196. }
  197. public function getTopicClassList(array $data){
  198. return $this->__request(__FUNCTION__, $data);
  199. }
  200. public function addTopicClass(array $data){
  201. return $this->__request(__FUNCTION__, $data);
  202. }
  203. public function updateTopicClass(array $data){
  204. return $this->__request(__FUNCTION__, $data);
  205. }
  206. public function deleteTopicClass(array $data){
  207. return $this->__request(__FUNCTION__, $data);
  208. }
  209. public function getTopicClassInfo(array $data){
  210. return $this->__request(__FUNCTION__, $data);
  211. }
  212. }