model

package
v0.0.0-...-9d4efbb Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MovieToResponse

func MovieToResponse(m *Movie) *api.Movie

Types

type Movie

type Movie struct {
	gorm.Model
	ID          int    `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        string `json:"type"`
}

func ResponseToMovie

func ResponseToMovie(m api.Movie) *Movie

type MovieList

type MovieList []Movie

type User

type User struct {
	gorm.Model
	Id        string `gorm:"unique"`
	FirstName string
	LastName  string
	Email     string
	Password  string
	IsAdmin   bool `gorm:"default:false"`
}

func ResponseToUser

func ResponseToUser(u *SignUp) *User

Jump to

Keyboard shortcuts

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