user

package
v0.0.0-...-6c73541 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 6 Imported by: 0

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

type ControllerInterface interface {
	Create(ctx *gin.Context)
}

func NewUserController

func NewUserController(userService ServiceInterface) ControllerInterface

type CreateUserDto

type CreateUserDto struct {
	FirstName string `json:"firstName" binding:"required"`
	LastName  string `json:"lastName" binding:"required"`
	Email     string `json:"email" binding:"required"`
	Password  string `json:"password" binding:"password"`
}

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 CreateUserResponse struct {
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Email     string `json:"email"`
	Password  string `json:"password"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
}

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 Service

type Service struct {
	// contains filtered or unexported fields
}

type ServiceInterface

type ServiceInterface interface {
	// contains filtered or unexported methods
}

func NewUserService

func NewUserService(userRepository RepositoryInterface) ServiceInterface

type User

type User struct {
	Id        string
	FirstName string
	LastName  string
	Email     string
	Password  string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL