FormService.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. namespace App\JsonRpc;
  3. use Hyperf\RpcClient\AbstractServiceClient;
  4. use App\Model\GlobalTable;
  5. use App\Tools\Result;
  6. class FormService extends AbstractServiceClient implements FormServiceInterface
  7. {
  8. /**
  9. * 定义对应服务提供者的服务名称
  10. * @var string
  11. */
  12. protected string $serviceName = 'FormService';
  13. /**
  14. * 定义对应服务提供者的服务协议
  15. * @var string
  16. */
  17. protected string $protocol = 'jsonrpc-http';
  18. /**
  19. * @param array $data
  20. * @return array|mixed
  21. */
  22. public function addGlobalTable(array $data)
  23. {
  24. return $this->__request(__FUNCTION__, $data);
  25. }
  26. /**
  27. * @param array $data
  28. * @return array|mixed
  29. */
  30. public function getGlobalTableList(array $data)
  31. {
  32. return $this->__request(__FUNCTION__, $data);
  33. }
  34. /**
  35. * @param array $data
  36. * @return array|mixed
  37. */
  38. public function getGlobalTable(array $data)
  39. {
  40. return $this->__request(__FUNCTION__, $data);
  41. }
  42. /**
  43. * @param array $data
  44. * @return array|mixed
  45. */
  46. public function upGlobalTable(array $data)
  47. {
  48. return $this->__request(__FUNCTION__, $data);
  49. }
  50. /**
  51. * @param array $data
  52. * @return array|mixed
  53. */
  54. public function delGlobalTable(array $data)
  55. {
  56. return $this->__request(__FUNCTION__, $data);
  57. }
  58. }