This commit is contained in:
2023-04-08 11:35:04 +08:00
parent ffbe54777d
commit 21d483cc14
3 changed files with 91 additions and 2 deletions
@@ -0,0 +1,30 @@
<?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 PrescriptionExpiredDelayDirectProducer extends ProducerMessage
{
use ProducerDelayedMessageTrait;
protected string $exchange = 'amqp.delay.direct';
protected string $type = Type::DIRECT;
protected string|array $routingKey = 'PrescriptionExpired';
public function __construct($data)
{
$this->payload = $data;
}
}