<?php

namespace App\Jobs\GrowingIO;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;

/**
 * 信息流mock事件上报
 * Class FeedMockReportJob
 * @package App\Jobs\GrowingIO
 */
class FeedMockReportJob extends BaseReportJob implements ShouldQueue
{
    use Dispatchable;
    use InteractsWithQueue;
    use Queueable;
    use SerializesModels;

    protected $uid;
    protected $partner_id;
    protected $partner_last_3day_vistor;

    public function __construct($uid, $partner_id, $partner_last_3day_vistor)
    {
        $this->uid = $uid;
        $this->partner_id = $partner_id;
        $this->partner_last_3day_vistor = $partner_last_3day_vistor;
    }

    public function doHandle()
    {
        $this->doReport(self::FEED_MOCK, $this->uid, [
            'partner_id' => $this->partner_id,
            'partner_last_3day_vistor' => $this->partner_last_3day_vistor,
        ]);
    }
}
