app-cloudep-wallet-service/pkg/domain/repository/wallet_transaction.go

18 lines
401 B
Go
Raw Permalink Normal View History

2025-04-16 09:24:54 +00:00
package repository
import (
"code.30cm.net/digimon/app-cloudep-wallet-service/pkg/domain/entity"
"context"
"gorm.io/gorm"
)
type WalletTransactionRepo interface {
Create(ctx context.Context, db *gorm.DB, tx []entity.WalletTransaction) error
HistoryBalance(ctx context.Context, req HistoryReq) ([]entity.WalletTransaction, error)
}
type HistoryReq struct {
UID string
StartTime int64
}