1234567891011121314151617 |
- # -*- coding: utf-8 -*-
- # !/usr/bin/env python
- from typing import Union, TYPE_CHECKING
- from apps.web.core.payment.base import PaymentGateway
- from apps.web.core.payment.base import WithdrawGateway
- if TYPE_CHECKING:
- from apps.web.core.payment.ali import AliPayGateway, AliPayWithdrawGateway
- from apps.web.core.payment.wechat import WechatPaymentGateway, WechatWithdrawGateway
- PaymentGatewayT = Union[AliPayGateway, WechatPaymentGateway]
- WechatMiniPaymentGatewayT = Union[WechatPaymentGateway]
- WithdrawGatewayT = Union[AliPayWithdrawGateway, WechatWithdrawGateway]
|