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