model

package
v0.0.0-...-41ef91b Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthors

func GetAuthors() *[]Author

func GetTodos

func GetTodos() *[]ToDo

Types

type Author

type Author struct {
	User
	ToDos []ToDo `json:"to_dos"`
}

func GetAuthor

func GetAuthor() *Author

type ToDo

type ToDo struct {
	gorm.Model
	ToDo     string `json:"todo"`
	Finished bool   `json:"finished"`
	Failed   bool   `json:"failed"`
	AuthorID uint   `json:"author_id"`
}

func GetTodo

func GetTodo() *ToDo

type User

type User struct {
	gorm.Model
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
}

Jump to

Keyboard shortcuts

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