OrderService.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?php
  2. namespace App\JsonRpc;
  3. use Hyperf\RpcClient\AbstractServiceClient;
  4. class OrderService extends AbstractServiceClient implements OrderServiceInterface
  5. {
  6. /**
  7. * 定义对应服务提供者的服务名称
  8. * @var string
  9. */
  10. protected string $serviceName = 'OrderService';
  11. /**
  12. * 定义对应服务提供者的服务协议
  13. * @var string
  14. */
  15. protected string $protocol = 'jsonrpc-http';
  16. /**
  17. * @param array $data
  18. * @return mixed
  19. */
  20. public function getAD(array $data)
  21. {
  22. return $this->__request(__FUNCTION__, $data);
  23. }
  24. /**
  25. * @param array $data
  26. * @return mixed
  27. */
  28. public function getWebsiteAd(array $data)
  29. {
  30. return $this->__request(__FUNCTION__, $data);
  31. }
  32. /**
  33. * @param array $data
  34. * @return mixed
  35. */
  36. public function getOrderListAdmin(array $data)
  37. {
  38. return $this->__request(__FUNCTION__, $data);
  39. }
  40. public function getOrderDetailAdmin(array $data)
  41. {
  42. return $this->__request(__FUNCTION__, $data);
  43. }
  44. public function applyOrderStatusAdmin(array $data)
  45. {
  46. return $this->__request(__FUNCTION__, $data);
  47. }
  48. public function editPriceOrderAdmin(array $data)
  49. {
  50. return $this->__request(__FUNCTION__, $data);
  51. }
  52. public function rejectOrderAdmin(array $data)
  53. {
  54. return $this->__request(__FUNCTION__, $data);
  55. }
  56. public function endOrderAdmin(array $data)
  57. {
  58. return $this->__request(__FUNCTION__, $data);
  59. }
  60. public function delOrderAdmin(array $data)
  61. {
  62. return $this->__request(__FUNCTION__, $data);
  63. }
  64. /**
  65. * @param array $data
  66. * @return mixed
  67. */
  68. public function addAD(array $data)
  69. {
  70. return $this->__request(__FUNCTION__, $data);
  71. }
  72. /**
  73. * @param array $data
  74. * @return mixed
  75. */
  76. public function getOrderList(array $data)
  77. {
  78. return $this->__request(__FUNCTION__, $data);
  79. }
  80. /**
  81. * @param array $data
  82. * @return mixed
  83. */
  84. public function getOrderDetail(array $data)
  85. {
  86. return $this->__request(__FUNCTION__, $data);
  87. }
  88. /**
  89. * @param array $data
  90. * @return mixed
  91. */
  92. public function cancelOrder(array $data)
  93. {
  94. return $this->__request(__FUNCTION__, $data);
  95. }
  96. /**
  97. * @param array $data
  98. * @return mixed
  99. */
  100. public function delOrderAD(array $data)
  101. {
  102. return $this->__request(__FUNCTION__, $data);
  103. }
  104. }