Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) Create ¶
func (ctr *Controller) Create(ctx *gin.Context)
type ControllerInterface ¶
func NewUserController ¶
func NewUserController(userService ServiceInterface) ControllerInterface
type CreateUserDto ¶
type CreateUserRequestDto ¶
type CreateUserRequestDto struct { Id string `json:"id" binding:"required"` FirstName string `json:"firstName" binding:"required"` LastName string `json:"lastName" binding:"required"` Email string `json:"email" binding:"required"` Password string `json:"password" binding:"password"` PasswordConfirmation string `json:"passwordConfirmation" binding:"required"` }
type CreateUserResponse ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
type RepositoryInterface ¶
type RepositoryInterface interface {
// contains filtered or unexported methods
}
func NewUserRepository ¶
func NewUserRepository(db *pg.DB) RepositoryInterface
type ServiceInterface ¶
type ServiceInterface interface {
// contains filtered or unexported methods
}
func NewUserService ¶
func NewUserService(userRepository RepositoryInterface) ServiceInterface
Click to show internal directories.
Click to hide internal directories.