hospital-applets-api/app/Amqp/Producer/PrescriptionDistributePhProducer.php

22 lines
433 B
PHP

<?php
declare(strict_types=1);
namespace App\Amqp\Producer;
use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerMessage;
use Hyperf\Amqp\Message\Type;
/**
* 药师处方分配队列
*/
#[Producer(exchange: 'amqp.direct', routingKey: 'PrescriptionDistribute')]
class PrescriptionDistributePhProducer extends ProducerMessage
{
public function __construct($data)
{
$this->payload = $data;
}
}