OrderService.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 getOrderListAdmin(array $data)
  29. {
  30. return $this->__request(__FUNCTION__, $data);
  31. }
  32. public function getOrderDetailAdmin(array $data)
  33. {
  34. return $this->__request(__FUNCTION__, $data);
  35. }
  36. public function editOrderStatusAdmin(array $data)
  37. {
  38. return $this->__request(__FUNCTION__, $data);
  39. }
  40. public function editOrderAdmin(array $data)
  41. {
  42. return $this->__request(__FUNCTION__, $data);
  43. }
  44. public function rejectOrderAdmin(array $data)
  45. {
  46. return $this->__request(__FUNCTION__, $data);
  47. }
  48. public function endOrderAdmin(array $data)
  49. {
  50. return $this->__request(__FUNCTION__, $data);
  51. }
  52. public function delOrderAdmin(array $data)
  53. {
  54. return $this->__request(__FUNCTION__, $data);
  55. }
  56. }