Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PaymentDB ¶
type PaymentDB interface { // CheckPaymentExist CheckUserExist(ctx context.Context, uid int64) (userInfo interface{}, err error) CheckPaymentExist(ctx context.Context, orderID int64) (paymentInfo bool, err error) GetPaymentInfo(ctx context.Context, orderID int64) (payStatus *model.PaymentOrder, err error) CreatePayment(ctx context.Context, order *model.PaymentOrder) error CreateRefund(ctx context.Context, order *model.PaymentRefund) error }
type PaymentRPC ¶
type PaymentRedis ¶
type PaymentRedis interface { SetPaymentToken(ctx context.Context, key string, value interface{}, expiration time.Duration) error IncrRedisKey(ctx context.Context, key string, expiration int) (int64, error) CheckRedisDayKey(ctx context.Context, key string) (bool, error) SetRedisDayKey(ctx context.Context, key string, value string, expiration int) error SetRefundToken(ctx context.Context, key string, token string, duration time.Duration) error }
Click to show internal directories.
Click to hide internal directories.