feat : check
This commit is contained in:
26
app/Amqp/Producer/Order/GoodOrderFinishSuccessorProducer.php
Normal file
26
app/Amqp/Producer/Order/GoodOrderFinishSuccessorProducer.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Amqp\Producer\Order;
|
||||
|
||||
use Hyperf\Amqp\Annotation\Producer;
|
||||
use Hyperf\Amqp\Message\ProducerMessage;
|
||||
use Hyperf\Amqp\Message\Type;
|
||||
|
||||
#[Producer(exchange: 'GoodOrderFinish', routingKey: 'GoodOrderFinish')]
|
||||
class GoodOrderFinishSuccessorProducer extends ProducerMessage
|
||||
{
|
||||
/**
|
||||
* @var Type|string 消息类型
|
||||
*/
|
||||
protected Type|string $type = Type::DIRECT;
|
||||
|
||||
public function __construct($data)
|
||||
{
|
||||
/**
|
||||
* $data string array => {"order_id":"orderId"}
|
||||
*/
|
||||
$this->payload = $data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user