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
965 B

  1. <?php
  2. namespace App\Service;
  3. interface MiniprogramServiceInterface
  4. {
  5. /**
  6. * 外卖线上订单模板消息
  7. * @param $order_main_id
  8. * @return mixed
  9. */
  10. public function sendTemMsgForOnlineOrder($order_main_id);
  11. /**
  12. * 当面线下订单模板消息
  13. * @param $order_main_id
  14. * @return mixed
  15. */
  16. public function sendTemMsgForOfflineOrder($order_main_id);
  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. }