Documentation ¶
Index ¶
- type FinanceRepo
- func (r *FinanceRepo) Close(ctx context.Context) error
- func (r *FinanceRepo) CreateNewTransaction(ctx context.Context, idFrom uuid.UUID, operation string, sum float64, ...) error
- func (r *FinanceRepo) GetBalance(ctx context.Context, inp *domain.BalanceInput) (float64, error)
- func (r *FinanceRepo) GetTransactionsList(ctx context.Context, inp *domain.TransactionsListInput) ([]domain.TransactionsList, error)
- func (r *FinanceRepo) MakeRemittance(ctx context.Context, inp *domain.RemittanceInput) error
- func (r *FinanceRepo) MakeTransaction(ctx context.Context, inp *domain.TransactionInput) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FinanceRepo ¶
type FinanceRepo struct {
// contains filtered or unexported fields
}
struct for communication with database
func (*FinanceRepo) CreateNewTransaction ¶
func (r *FinanceRepo) CreateNewTransaction(ctx context.Context, idFrom uuid.UUID, operation string, sum float64, idTo uuid.UUID, description string) error
create transaction
func (*FinanceRepo) GetBalance ¶
func (r *FinanceRepo) GetBalance(ctx context.Context, inp *domain.BalanceInput) (float64, error)
user balance
func (*FinanceRepo) GetTransactionsList ¶
func (r *FinanceRepo) GetTransactionsList(ctx context.Context, inp *domain.TransactionsListInput) ([]domain.TransactionsList, error)
list of all transactions by query
func (*FinanceRepo) MakeRemittance ¶
func (r *FinanceRepo) MakeRemittance(ctx context.Context, inp *domain.RemittanceInput) error
transaction from user to user
func (*FinanceRepo) MakeTransaction ¶
func (r *FinanceRepo) MakeTransaction(ctx context.Context, inp *domain.TransactionInput) error
transaction from user
Click to show internal directories.
Click to hide internal directories.