Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶
type Service ¶
type Service struct { AccountService AccountService UserService UserService TransactionService TransactionService }
func InitServiceFactory ¶
func InitServiceFactory(repo *repositories.Repository) *Service
InitServiceFactory initialize services factory
type TransactionService ¶
type TransactionService interface { GetUserTransactions(ctx context.Context, req *models.GetUserTransactionsReq) ([]models.UserTransactionResp, error) CreateUserTransaction(ctx context.Context, req *models.CreateUserTransactionReq) (*models.UserTransactionResp, error) UpdateUserTransactions(ctx context.Context, req *models.UpdateUserTransactionsReq) ([]models.UserTransactionResp, error) UpdateUserAccountTransactions(ctx context.Context, req *models.UpdateUserAccountTransactionsReq) ([]models.UserTransactionResp, 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.