feat : check

This commit is contained in:
2025-04-01 18:06:14 +08:00
parent 8f519262fd
commit e39d7a724b
3 changed files with 134 additions and 0 deletions

View 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;
}
}