feat : refund

This commit is contained in:
2025-02-24 15:06:26 +08:00
parent 6754d2969e
commit 27a6ad3e2e
15 changed files with 591 additions and 281 deletions

View File

@@ -4,9 +4,11 @@ namespace App\Service\ServiceTrait\Api;
use App\Constants\Common\OrderCode;
use App\Constants\Common\PayCode;
use App\Constants\Common\RefundCode;
use App\Exception\ErrException;
use App\Model\Order;
use App\Model\PayOrder;
use App\Model\RefundOrder;
use Exception;
use Hyperf\Di\Annotation\Inject;
use Psr\Container\ContainerExceptionInterface;
@@ -27,6 +29,12 @@ trait GoodOrderTrait
#[Inject]
protected PayOrder $payOrderModel;
/**
* @var RefundOrder
*/
#[Inject]
protected RefundOrder $refundOrderModel;
/**
* @return void
* @throws ContainerExceptionInterface
@@ -53,6 +61,8 @@ trait GoodOrderTrait
}
}
/**
* @return void
* @throws ContainerExceptionInterface