新增分配医生延迟队列

This commit is contained in:
2023-04-26 15:35:30 +08:00
parent d746a7ae8a
commit 9636f0ce34
2 changed files with 355 additions and 0 deletions
@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
namespace App\Amqp\Producer;
use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerDelayedMessageTrait;
use Hyperf\Amqp\Message\ProducerMessage;
use Hyperf\Amqp\Message\Type;
#[Producer]
class AssignDoctorDelayDirectProducer extends ProducerMessage
{
use ProducerDelayedMessageTrait;
protected string $exchange = 'amqp.delay.direct';
protected string $type = Type::DIRECT;
protected string|array $routingKey = 'AssignDoctor';
public function __construct($data)
{
$this->payload = $data;
}
}