ThumbUser.php 618 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace App\Events;
  3. use App\Models\PartnerModel;
  4. use App\Models\User\UserModel;
  5. use Illuminate\Queue\SerializesModels;
  6. /**
  7. * 点赞或取消事件
  8. * Class ThumbUser
  9. * @package App\Events
  10. */
  11. class ThumbUser extends BaseEvent
  12. {
  13. use SerializesModels;
  14. public $user;
  15. public $partner;
  16. /**
  17. * Create a new event instance.
  18. *
  19. * @param UserModel $user
  20. * @param PartnerModel $partner
  21. */
  22. public function __construct(UserModel $user, PartnerModel $partner)
  23. {
  24. parent::__construct();
  25. $this->user = $user;
  26. $this->partner = $partner;
  27. }
  28. }