repository

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type IApiKeyRepository

type IApiKeyRepository interface {
	FindById(id string) (*model.ApiKey, error)
	FindByMerchantAndModeAndKeyType(merchantId uuid.UUID, mode enum.Mode, apiKeyType enum.ApiKeyType) (*model.ApiKey, error)
	Delete(merchantId uuid.UUID, apiKeyId string) error
}

func NewApiKeyRepository

func NewApiKeyRepository(db *gorm.DB) (IApiKeyRepository, error)

type IMerchantRepository

type IMerchantRepository interface {
	FindById(id uuid.UUID) (*model.Merchant, error)
	FindByEmail(email string) (*model.Merchant, error)
	Create(merchant *model.Merchant) error
	Update(merchant *model.Merchant) error
	DeleteWalletById(id string) error
}

func NewMerchantRepository

func NewMerchantRepository(db *gorm.DB) (IMerchantRepository, error)

type IPaymentRepository

type IPaymentRepository interface {
	FindByMerchantIdAndMode(merchantId uuid.UUID, mode enum.Mode) ([]model.Payment, error)
	FindByBlockchainIdAndCurrency(id string, currency enum.CryptoCurrency) (*model.Payment, error)
	Update(payment *model.Payment) error
}

func NewPaymentRepository

func NewPaymentRepository(db *gorm.DB) (IPaymentRepository, error)

Jump to

Keyboard shortcuts

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