<?php

declare(strict_types=1);

namespace App\Amqp\Producer;

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

/**
 * 分配药师
 */
#[Producer(exchange: 'amqp.direct', routingKey: 'AssignPharmacist')]
class AssignPharmacistProducer extends ProducerMessage
{
    /**
     * @param $data
     * [
     *      "order_prescription_id":"处方订单id"
     * ]
     */
    public function __construct($data)
    {
        $this->payload = $data;
    }
}
