Documentation ¶
Index ¶
- type CommonUseCases
- func (useCases *CommonUseCases) GetAllUsers() ([]*entities.User, error)
- func (useCases *CommonUseCases) GetUserByID(id int) (*entities.User, error)
- func (useCases *CommonUseCases) LoginUser(userData entities.LoginUserDTO) (string, error)
- func (useCases *CommonUseCases) RegisterUser(userData entities.RegisterUserDTO) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonUseCases ¶
type CommonUseCases struct { AuthService interfaces.AuthService UsersService interfaces.UsersService }
func (*CommonUseCases) GetAllUsers ¶
func (useCases *CommonUseCases) GetAllUsers() ([]*entities.User, error)
func (*CommonUseCases) GetUserByID ¶
func (useCases *CommonUseCases) GetUserByID(id int) (*entities.User, error)
func (*CommonUseCases) LoginUser ¶
func (useCases *CommonUseCases) LoginUser(userData entities.LoginUserDTO) (string, error)
func (*CommonUseCases) RegisterUser ¶
func (useCases *CommonUseCases) RegisterUser(userData entities.RegisterUserDTO) (int, error)
Click to show internal directories.
Click to hide internal directories.