feat : spu
This commit is contained in:
28
app/Event/PayGoodOrderFinishEvent.php
Normal file
28
app/Event/PayGoodOrderFinishEvent.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Event;
|
||||
|
||||
class PayGoodOrderFinishEvent
|
||||
{
|
||||
/**
|
||||
* @var int 订单 id
|
||||
*/
|
||||
public int $orderId;
|
||||
|
||||
/**
|
||||
* @var int 支付订单 id
|
||||
*/
|
||||
public int $payOrderId;
|
||||
|
||||
/**
|
||||
* @param int $orderId
|
||||
* @param int $payOrderId
|
||||
*/
|
||||
public function __construct(int $orderId, int $payOrderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
$this->payOrderId = $payOrderId;
|
||||
}
|
||||
}
|
||||
35
app/Event/RefundGoodOrderFinishEvent.php
Normal file
35
app/Event/RefundGoodOrderFinishEvent.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Event;
|
||||
|
||||
class RefundGoodOrderFinishEvent
|
||||
{
|
||||
/**
|
||||
* @var int 订单 id
|
||||
*/
|
||||
public int $orderId;
|
||||
|
||||
/**
|
||||
* @var int 支付订单 id
|
||||
*/
|
||||
public int $payOrderId;
|
||||
|
||||
/**
|
||||
* @var int 退款订单 id
|
||||
*/
|
||||
public int $refundOrderId;
|
||||
|
||||
/**
|
||||
* @param int $orderId
|
||||
* @param int $payOrderId
|
||||
* @param int $refundOrderId
|
||||
*/
|
||||
public function __construct(int $orderId, int $payOrderId, int $refundOrderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
$this->payOrderId = $payOrderId;
|
||||
$this->refundOrderId = $refundOrderId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user