feat : refund and catering

This commit is contained in:
2025-03-07 16:20:57 +08:00
parent d41b758d55
commit 4358491905
9 changed files with 351 additions and 7 deletions

View File

@@ -7,6 +7,9 @@ use App\Constants\Common\PayCode;
use App\Constants\Common\RefundCode;
use App\Exception\ErrException;
use App\Model\Order;
use App\Model\OrderGood;
use App\Model\OrderMealCateringLog;
use App\Model\OrderOptionCateringLog;
use App\Model\PayOrder;
use App\Model\RefundOrder;
use Exception;
@@ -35,6 +38,24 @@ trait GoodOrderTrait
#[Inject]
protected RefundOrder $refundOrderModel;
/**
* @var OrderGood
*/
#[Inject]
protected OrderGood $orderGoodModel;
/**
* @var OrderOptionCateringLog
*/
#[Inject]
protected OrderOptionCateringLog $orderOptionCateringLogModel;
/**
* @var OrderMealCateringLog
*/
#[Inject]
protected OrderMealCateringLog $orderMealCateringLogModel;
/**
* @return void
* @throws ContainerExceptionInterface
@@ -61,8 +82,6 @@ trait GoodOrderTrait
}
}
/**
* @return void
* @throws ContainerExceptionInterface
@@ -79,5 +98,4 @@ trait GoodOrderTrait
throw new ErrException($e->getMessage());
}
}
}