Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BioDTO ¶
type BioDTO struct { Id string `json:"id,omitempty" db:"id"` UserId string `json:"userId" db:"user_id"` Bio string `json:"bio" db:"bio"` CreatedAt time.Time `json:"createdAt" db:"created_at"` UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` }
BioDTO one to one with user
type FullDTO ¶
type FullDTO struct { BioDTO Hobbies []HobbieDTO `json:"hobbies"` MovieSeries []MovieSerieDTO `json:"movieSeries"` Travels []TravelDTO `json:"travels"` Sports []SportDTO `json:"sports"` }
FullDTO one to one with user
type HobbieDTO ¶
type HobbieDTO struct { Id string `json:"id,omitempty" db:"id" binding:"omitempty,uuid"` Hobbie string `json:"hobbie" db:"hobbie" binding:"required,min=2,max=50"` }
HobbieDTO one to many with bio
type MovieSerieDTO ¶
type MovieSerieDTO struct { Id string `json:"id,omitempty" db:"id" binding:"omitempty,uuid"` MovieSerie string `json:"movieSerie" db:"movie_serie" binding:"required,min=2,max=50"` }
MovieSerieDTO one to many with bio
Click to show internal directories.
Click to hide internal directories.