feat : spu

This commit is contained in:
2025-03-26 17:48:48 +08:00
parent b1f79620fb
commit c7d0a222ab
3 changed files with 226 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
namespace App\Amqp\Producer\Statement;
use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerMessage;
use Hyperf\Amqp\Message\Type;
#[Producer(exchange: 'RefundStatement', routingKey: 'RefundStatement')]
class RefundFinishProducer extends ProducerMessage
{
/**
* @var Type|string 消息类型
*/
protected Type|string $type = Type::DIRECT;
public function __construct($data)
{
/**
* $data string array => {"order_id":"order_id","refund_order_id":"refund_order_id"}
*/
$this->payload = $data;
}
}