35 lines
776 B
PHP
35 lines
776 B
PHP
<?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 AutoPharmacistCaVerifyDelayDirectProducer extends ProducerMessage
|
|
{
|
|
use ProducerDelayedMessageTrait;
|
|
|
|
protected string $exchange = 'amqp.delay.direct';
|
|
|
|
protected string $type = Type::DIRECT;
|
|
|
|
protected string|array $routingKey = 'AutoPharmacistCaVerify';
|
|
|
|
/**
|
|
* @param $data
|
|
* [
|
|
* prescription_file_id:订单-处方表-ca处方文件主键
|
|
* order_prescription_id:订单-处方id
|
|
* ]
|
|
*/
|
|
public function __construct($data)
|
|
{
|
|
$this->payload = $data;
|
|
}
|
|
}
|