entity

package
v0.0.0-...-b665e70 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	ID int `json:"id"`
	NewActor
	MovieIDs []int32 `json:"movie_ids"`
}

type Movie

type Movie struct {
	ID int `json:"id"`
	NewMovie
}

Movie represents a movie record

type NewActor

type NewActor struct {
	Name      string    `json:"name"`
	Sex       string    `json:"sex"`
	BirthDate time.Time `json:"birthdate"`
}

type NewMovie

type NewMovie struct {
	Title       string    `json:"title"`
	Description string    `json:"description,omitempty"`
	ReleaseDate time.Time `json:"release_date"`
	Rating      int       `json:"rating"`
	ActorIDs    []int32   `json:"actor_ids"`
}

Jump to

Keyboard shortcuts

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