Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
USER_ALREADY_AVAILABLE_ERROR = domain.NewErrorCode(4201, "USER_ALREADY_AVAILABLE_ERROR", "user already available")
)
Functions ¶
This section is empty.
Types ¶
type CreateUser ¶
type GetUserByEmail ¶
type GetUserByEmail struct {
Email string `validate:"required,email"`
}
type UserUseCase ¶
type UserUseCase struct {
// contains filtered or unexported fields
}
func NewUserUseCase ¶
func NewUserUseCase(usersRepository repository.UserRepository) *UserUseCase
func (*UserUseCase) CreateUser ¶
func (u *UserUseCase) CreateUser(ctx context.Context, data CreateUser) (err *domain.Error)
func (*UserUseCase) GetUserByEmail ¶
func (u *UserUseCase) GetUserByEmail(ctx context.Context, data GetUserByEmail) (user entity.User, err *domain.Error)
Click to show internal directories.
Click to hide internal directories.