models

package
v0.0.0-...-d1250b3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	gorm.Model
	Name        string `gorm:""json:"name"`
	Author      string `json:"author"`
	Publication string `json:"publication"`
}

func DeleteBook

func DeleteBook(Id int64) Book

func GetBook

func GetBook(Id int64) (*Book, *gorm.DB)

func GetBooks

func GetBooks() []Book

func (*Book) CreateBook

func (b *Book) CreateBook() *Book

Jump to

Keyboard shortcuts

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