You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.7 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. <?php
  2. namespace App\Service\v3\Interfaces;
  3. interface MiniprogramServiceInterface
  4. {
  5. /**
  6. * 外卖线上订单模板消息
  7. * @param $globalOrderId
  8. * @return mixed
  9. */
  10. public function sendTemMsgForOnlineOrder($globalOrderId);
  11. /**
  12. * 当面线下订单模板消息
  13. * @param $globalOrderId
  14. * @return mixed
  15. */
  16. public function sendTemMsgForOfflineOrder($globalOrderId);
  17. /**
  18. * 奖励模板消息
  19. * @param $money
  20. * @param $note
  21. * @param $openid
  22. * @param $time
  23. * @return mixed
  24. */
  25. public function sendTemMsgForAward($money, $note, $openid, $time);
  26. /**
  27. * 直接退款时订阅消息通知商户
  28. * @param $orderId
  29. * @param $refundStoreAmount
  30. * @param $orderGoodsId
  31. * @return mixed
  32. */
  33. public function subscribeMsgForSingleRefund($orderId, $refundStoreAmount, $orderGoodsId = '');
  34. /**
  35. * 发送模板消息
  36. * @param $openid
  37. * @param $template_id
  38. * @param $data
  39. * @param string $redirect_url
  40. * @param string[] $applet_config
  41. * @return mixed
  42. */
  43. public function sendTempMsg($openid, $template_id, $data, $redirect_url = '', $applet_config = ['appid' => '', 'pagepath' => '']);
  44. /**
  45. * 发送小程序订阅消息
  46. * @param $openid
  47. * @param $template_id
  48. * @param $data
  49. * @param string $page
  50. * @return mixed
  51. */
  52. public function sendSubscribeMessage($openid, $template_id, $data, $page = '');
  53. /**
  54. * 获取订阅消息模板
  55. * 为空时,从微信服务器获取全部,否则从本地服务器获取
  56. * @param $forUserType
  57. * @return mixed
  58. */
  59. public function getSubscribeMessageTempList($forUserType);
  60. }