Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAccountService ¶
type AddAccountService struct {
// contains filtered or unexported fields
}
func NewAddAccountService ¶
func NewAddAccountService(accountRepository protocols.AccountRepository, hasher protocols.Hasher) *AddAccountService
func (*AddAccountService) AddAccount ¶
func (useCase *AddAccountService) AddAccount(input *domaindto.AddAccountInputDTO) (*domaindto.AddAccountOutputDTO, error)
type AddBookService ¶
type AddBookService struct {
// contains filtered or unexported fields
}
func NewAddBookService ¶
func NewAddBookService(bookRepo protocols.AddBookRepository, userRepo protocols.UserRepository) *AddBookService
func (*AddBookService) AddBook ¶
func (useCase *AddBookService) AddBook(input *domaindto.AddBookUseCaseInputDTO) (*domaindto.AddBookUseCaseOutputDTO, error)
type AddUserService ¶
type AddUserService struct {
// contains filtered or unexported fields
}
func NewAddUserService ¶
func NewAddUserService(repo protocols.UserRepository) *AddUserService
func (*AddUserService) Add ¶
func (s *AddUserService) Add(input *domaindto.AddUserInputDTO) (*domaindto.AddUserOutputDTO, error)
type DeleteUserService ¶
type DeleteUserService struct {
// contains filtered or unexported fields
}
func NewDeleteUserService ¶
func NewDeleteUserService(repo protocols.UserRepository) *DeleteUserService
func (*DeleteUserService) DeleteUser ¶
func (s *DeleteUserService) DeleteUser(userId string) (string, error)
type GetBookByIdService ¶
type GetBookByIdService struct {
// contains filtered or unexported fields
}
func NewGetBookByIdService ¶
func NewGetBookByIdService(getBookRepo protocols.GetBookRepository) *GetBookByIdService
func (*GetBookByIdService) GetBookById ¶
func (s *GetBookByIdService) GetBookById(bookId string) (*entities.Book, error)
type GetUserByIdService ¶
type GetUserByIdService struct {
// contains filtered or unexported fields
}
func NewGetUserByIdService ¶
func NewGetUserByIdService(repo protocols.UserRepository) *GetUserByIdService
func (*GetUserByIdService) GetUserById ¶
func (s *GetUserByIdService) GetUserById(userId string) (*domaindto.GetUserByIdUseCaseOutputDTO, error)
type ListAccountsService ¶
type ListAccountsService struct {
// contains filtered or unexported fields
}
func NewListAccountsService ¶
func NewListAccountsService(repo protocols.ListAccountsRepository) *ListAccountsService
func (*ListAccountsService) ListAccounts ¶
func (l *ListAccountsService) ListAccounts() []domaindto.ListAccountsOutputDTO
type ListBooksService ¶
type ListBooksService struct {
// contains filtered or unexported fields
}
func NewListBookService ¶
func NewListBookService(repo protocols.ListBooksRepository) *ListBooksService
type ListUsersService ¶
type ListUsersService struct {
// contains filtered or unexported fields
}
func NewListUsersService ¶
func NewListUsersService(repo protocols.UserRepository) *ListUsersService
func (*ListUsersService) List ¶
func (s *ListUsersService) List() []*domaindto.ListUsersDTO
type RemoveAccountService ¶
type RemoveAccountService struct {
// contains filtered or unexported fields
}
func NewRemoveAccountService ¶
func NewRemoveAccountService(repo protocols.AccountRepository) *RemoveAccountService
func (*RemoveAccountService) RemoveAccount ¶
func (useCase *RemoveAccountService) RemoveAccount(accountId string) (string, error)
type RemoveBookService ¶
type RemoveBookService struct {
// contains filtered or unexported fields
}
func NewRemoveBookService ¶
func NewRemoveBookService( removeBookRepo protocols.RemoveBookRepository, findBookRepo protocols.FindBookRepository, userRepo protocols.UserRepository, ) *RemoveBookService
func (*RemoveBookService) RemoveBook ¶
func (s *RemoveBookService) RemoveBook(bookId string) (*domaindto.RemoveBookUseCaseOutputDTO, error)
Click to show internal directories.
Click to hide internal directories.