Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserInputDTO ¶
type CreateUserInputDTO struct { Name string `json:"name" validate:"required"` BirthDate string `json:"birth_date" validate:"required,datetime=2006-01-02"` Email string `json:"email" validate:"required,email"` Password string `json:"password" validate:"required"` Address string `json:"address" validate:"required"` }
func (*CreateUserInputDTO) Validate ¶
func (user *CreateUserInputDTO) Validate() []error
type CreateUserOutputDTO ¶
type CreateUserOutputDTO struct {
ID string `json:"id"`
}
type CreateUserUseCase ¶
type CreateUserUseCase struct {
UserRepository interfaces.UserRepositoryInterface
}
func NewCreateUserUseCase ¶
func NewCreateUserUseCase(userRepository interfaces.UserRepositoryInterface) *CreateUserUseCase
func (*CreateUserUseCase) Execute ¶
func (c *CreateUserUseCase) Execute(input CreateUserInputDTO) (*CreateUserOutputDTO, error)
type FindOneUserUseCase ¶
type FindOneUserUseCase struct {
UserRepository interfaces.UserRepositoryInterface
}
func NewFindOneUserUseCase ¶
func NewFindOneUserUseCase(userRepository interfaces.UserRepositoryInterface) *FindOneUserUseCase
func (*FindOneUserUseCase) Execute ¶
func (c *FindOneUserUseCase) Execute(id string) (*FindOneUserUseCaseOutputDTO, error)
type UpdateUserInputDTO ¶
type UpdateUserInputDTO struct { ID string `json:"id"` Name string `json:"name"` BirthDate string `json:"birth_date" validate:"datetime=2006-01-02"` Email string `json:"email"` Password string `json:"password"` Address string `json:"address"` }
func (*UpdateUserInputDTO) Validate ¶
func (user *UpdateUserInputDTO) Validate() []error
type UpdateUserUseCase ¶
type UpdateUserUseCase struct {
UserRepository interfaces.UserRepositoryInterface
}
func NewUpdateUserUseCase ¶
func NewUpdateUserUseCase(userRepository interfaces.UserRepositoryInterface) *UpdateUserUseCase
func (*UpdateUserUseCase) Execute ¶
func (c *UpdateUserUseCase) Execute(input UpdateUserInputDTO) error
Click to show internal directories.
Click to hide internal directories.