<?php

declare(strict_types=1);

namespace App\Amqp\Producer;

use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerMessage;

/**
 * 分配医生
 * 快速问诊、问诊购药等订单支付完成后，进行分配医生
 */
#[Producer(exchange: 'amqp.direct', routingKey: 'AssignDoctor')]
class AssignDoctorProducer extends ProducerMessage
{
    /**
     * @param $data
     * [
     *      "order_inquiry_id":"问诊订单id"
     * ]
     */
    public function __construct($data)
    {
        $this->payload = $data;
    }
}
