EventInterface.php 464 B

12345678910111213141516
  1. <?php
  2. namespace App\Wechat\Official\Event;
  3. use App\Models\Company;
  4. use App\Models\Member;
  5. interface EventInterface
  6. {
  7. /**
  8. * @param array $wechatUser 从微信里获取的用户基本信息
  9. * @param bool|Company|Member $user 有没有绑定系统用户,false为未绑定,否则为对应的用户模型
  10. * @param array $payload 该事件的参数
  11. * @return mixed
  12. */
  13. public function handle(array $wechatUser, $user, array $payload);
  14. }