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.

40 lines
979 B

5 years ago
5 years ago
5 years ago
5 years ago
5 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 $openid
  29. * @param $template_id
  30. * @param $data
  31. * @param string $redirect_url
  32. * @param string[] $applet_config
  33. * @return mixed
  34. */
  35. public function sendTempMsg($openid, $template_id, $data, $redirect_url = '', $applet_config = ['appid' => '', 'pagepath' => '']);
  36. }