domaindto

package
v0.0.0-...-caf001f Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAccountInputDTO

type AddAccountInputDTO struct {
	UserName        string `json:"userName"`
	Email           string `json:"email"`
	Password        string `json:"password"`
	ConfirmPassword string `json:"confirmPassword"`
}

func NewAddAccountInputDTO

func NewAddAccountInputDTO(userName string, email string, password string, confirmPassword string) *AddAccountInputDTO

type AddAccountOutputDTO

type AddAccountOutputDTO struct {
	ID       string `json:"id"`
	UserName string `json:"userName"`
	Email    string `json:"email"`
}

func NewAddAccountOutputDTO

func NewAddAccountOutputDTO(id string, userName string, email string) *AddAccountOutputDTO

type AddBookUseCaseInputDTO

type AddBookUseCaseInputDTO struct {
	Title       string  `json:"title"`
	Author      string  `json:"author"`
	Price       float64 `json:"price"`
	Description string  `json:"description"`
	UserId      string  `json:"userId"`
}

type AddBookUseCaseOutputDTO

type AddBookUseCaseOutputDTO struct {
	ID          string  `json:"id"`
	Title       string  `json:"title"`
	Author      string  `json:"author"`
	Price       float64 `json:"price"`
	Description string  `json:"description"`
}

type AddUserInputDTO

type AddUserInputDTO struct {
	Name     string `json:"name"`
	UserName string `json:"userName"`
	Email    string `json:"email"`
}

func NewAddUserInputDTO

func NewAddUserInputDTO(name string, userName string, email string) *AddUserInputDTO

type AddUserOutputDTO

type AddUserOutputDTO struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	UserName string `json:"userName"`
	Email    string `json:"email"`
}

func NewAddUserOutputDTO

func NewAddUserOutputDTO(id string, name string, userName string, email string) *AddUserOutputDTO

type GetUserByIdUseCaseOutputDTO

type GetUserByIdUseCaseOutputDTO struct {
	ID       string          `json:"id"`
	Name     string          `json:"name"`
	Email    string          `json:"email"`
	UserName string          `json:"userName"`
	Books    []entities.Book `json:"books"`
}

func NewGetUserByIdUseCaseOutputDTO

func NewGetUserByIdUseCaseOutputDTO(id string, name string, email string, userName string, books []entities.Book) *GetUserByIdUseCaseOutputDTO

type ListAccountsOutputDTO

type ListAccountsOutputDTO struct {
	ID        string    `json:"id" valid:"uuid"`
	CreatedAt time.Time `json:"createdAt" valid:"-"`
	UpdatedAt time.Time `json:"updatedAt" valid:"-"`
	UserName  string    `json:"userName"`
	Email     string    `json:"email"`
}

type ListUsersDTO

type ListUsersDTO struct {
	ID       string          `json:"id"`
	Name     string          `json:"name"`
	UserName string          `json:"userName"`
	Email    string          `json:"email"`
	Books    []entities.Book `json:"books"`
}

func MapListUsersDTO

func MapListUsersDTO(users []*entities.User) []*ListUsersDTO

func NewListUserDTO

func NewListUserDTO(id string, name string, userName string, email string, books []entities.Book) *ListUsersDTO

type RemoveBookUseCaseOutputDTO

type RemoveBookUseCaseOutputDTO struct {
	Title       string  `json:"title"`
	Author      string  `json:"author"`
	Description string  `json:"description"`
	Price       float64 `json:"price"`
	UserId      string  `json:"userId"`
}

Jump to

Keyboard shortcuts

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