repository

package
v0.0.0-...-15be986 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

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 PaymentRPC interface {
	PaymentIsOrderExist(ctx context.Context, orderID int64) (bool, error)
}

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL