interestEntity

package
v0.0.0-...-e7c2cf1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

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

type SportDTO

type SportDTO struct {
	Id    string `json:"id,omitempty" db:"id" binding:"omitempty,uuid"`
	Sport string `json:"sport" db:"sport" binding:"required,min=2,max=50"`
}

SportDTO one to many with bio

type TravelDTO

type TravelDTO struct {
	Id     string `json:"id,omitempty" db:"id" binding:"omitempty,uuid"`
	Travel string `json:"travel" db:"travel" binding:"required,min=2,max=50"`
}

TravelDTO one to many with bio

Jump to

Keyboard shortcuts

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