__init__.py 605 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. # !/usr/bin/env python
  3. from typing import Union, TYPE_CHECKING
  4. from apps.web.core.payment.base import PaymentGateway
  5. from apps.web.core.payment.base import WithdrawGateway
  6. if TYPE_CHECKING:
  7. from apps.web.core.payment.ali import AliPayGateway, AliPayWithdrawGateway
  8. from apps.web.core.payment.wechat import WechatPaymentGateway, WechatWithdrawGateway
  9. PaymentGatewayT = Union[AliPayGateway, WechatPaymentGateway]
  10. WechatMiniPaymentGatewayT = Union[WechatPaymentGateway]
  11. WithdrawGatewayT = Union[AliPayWithdrawGateway, WechatWithdrawGateway]