model

package
v0.0.0-...-0fccaea Latest Latest
Warning

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

Go to latest
Published: Sep 1, 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 AddFilm

type AddFilm struct {
	IdReference int       `json:"id_reference" bson:"id_ref"`
	Title       string    `json:"title" bson:"title"`
	EpisodeId   int       `json:"episode_id" bson:"episodeId"`
	Director    string    `json:"director" bson:"director"`
	ReleaseDate time.Time `json:"release_date" bson:"releaseDate"`
}

type AddPlanet

type AddPlanet struct {
	Name    string               `json:"name" bson:"name" example:"Matheus"`
	Climate string               `json:"climate" bson:"climate" example:"arid"`
	Terrain string               `json:"terrain" bson:"terrain" example:"desert"`
	Films   []primitive.ObjectID `json:"-" bson:"films"`
}

type Film

type Film struct {
	Id          primitive.ObjectID `json:"id" bson:"_id"`
	IdReference int                `json:"id_reference" bson:"id_ref"`
	Title       string             `json:"title" bson:"title"`
	EpisodeId   int                `json:"episode_id" bson:"episodeId"`
	Director    string             `json:"director" bson:"director"`
	ReleaseDate time.Time          `json:"release_date" bson:"releaseDate"`
}

type FilterFilm

type FilterFilm struct {
	Id          primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	Title       string             `json:"title" bson:"title,omitempty"`
	EpisodeId   int                `json:"episode_id" bson:"episodeId,omitempty"`
	Director    string             `json:"director" bson:"director,omitempty"`
	ReleaseDate time.Time          `json:"release_date" bson:"releaseDate,omitempty"`
}

type FilterPlanet

type FilterPlanet struct {
	Id      primitive.ObjectID `json:"id" bson:"_id,omitempty" form:"id"`
	Name    string             `json:"name" bson:"name,omitempty" form:"name"`
	Climate string             `json:"climate" bson:"climate,omitempty" form:"climate"`
	Terrain string             `json:"terrain" bson:"terrain,omitempty" form:"terrain"`
}

type Planet

type Planet struct {
	Id      primitive.ObjectID `bson:"_id"`
	Name    string             `bson:"name"`
	Climate string             `json:"climate" bson:"climate"`
	Terrain string             `json:"terrain" bson:"terrain"`
	Films   []Film             `json:"films" bson:"films"`
}

Jump to

Keyboard shortcuts

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