internal

package
v0.0.0-...-cfeac3e Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePerson

func CreatePerson(db *gorm.DB) gin.HandlerFunc

func Fixtures

func Fixtures(db *gorm.DB) error

func Hello

func Hello(db *gorm.DB) gin.HandlerFunc

Types

type NewPerson

type NewPerson struct {
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
}

type Person

type Person struct {
	ID        uint      `gorm:"primary_key" json:"id"`
	FirstName string    `json:"first_name"`
	LastName  string    `json:"last_name"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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