Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountRepository ¶
type Repository ¶
type Repository struct { AccountRepository AccountRepository UserRepository UserRepository TransactionRepository TransactionRepository }
func InitRepositoryFactory ¶
func InitRepositoryFactory(db *sqlx.DB) *Repository
InitRepositoryFactory init repositories factory
type TransactionRepository ¶
type TransactionRepository interface { GetUserTransactions(ctx context.Context, req *models.GetUserTransactionsReq) ([]models.UserTransactionResp, error) CreateUserTransaction(ctx context.Context, req *models.CreateUserTransactionReq) (int, error) GetUserTransaction(ctx context.Context, transactionID int) (*models.UserTransactionResp, error) UpdateUserTransactions(ctx context.Context, req *models.UpdateUserTransactionsReq) error UpdateUserAccountTransactions(ctx context.Context, req *models.UpdateUserAccountTransactionsReq) error DeleteUserTransactions(ctx context.Context, userID int) error DeleteUserAccountTransactions(ctx context.Context, userID, accountID int) error DeleteTransactionByID(ctx context.Context, transactionID int) error }
Click to show internal directories.
Click to hide internal directories.