This commit is contained in:
2025-06-03 20:59:26 +08:00
parent 15baf2bb13
commit 26588ec703
2 changed files with 3 additions and 2 deletions

View File

@@ -28,13 +28,14 @@ type PayService struct {
}
// NewPayService 创建支付服务
func NewPayService(c config.Config, orderModel model.OrderModel, orderRefundModel model.OrderRefundModel, productModel model.ProductModel, userAuthModel model.UserAuthModel) *PayService {
func NewPayService(c config.Config, orderModel model.OrderModel, orderRefundModel model.OrderRefundModel, productModel model.ProductModel, userAuthModel model.UserAuthModel, userModel model.UserModel) *PayService {
ps := &PayService{
config: c,
orderModel: orderModel,
orderRefundModel: orderRefundModel,
productModel: productModel,
userAuthModel: userAuthModel,
userModel: userModel,
}
// 根据配置选择性初始化支付服务