model

package
v0.0.0-...-5e38817 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	ID        string     `json:"id"`
	FirstName *string    `json:"firstName"`
	LastName  string     `json:"lastName"`
	Birthday  *time.Time `json:"birthday"`
	Books     []*Book    `json:"books"`
}

func (*Author) Entity

func (e *Author) Entity() *aztables.EDMEntity

type AuthorInput

type AuthorInput struct {
	ID        string  `json:"id"`
	FirstName *string `json:"firstName"`
	LastName  string  `json:"lastName"`
}

type Book

type Book struct {
	Isbn    string    `json:"isbn"`
	Title   string    `json:"title"`
	Authors []*Author `json:"authors"`
	Year    *int      `json:"year"`
}

func (*Book) Entity

func (e *Book) Entity() *aztables.EDMEntity

type BookInput

type BookInput struct {
	Isbn    string         `json:"isbn"`
	Title   string         `json:"title"`
	Authors []*AuthorInput `json:"authors"`
	Year    *int           `json:"year"`
}

type CreateAuthorInput

type CreateAuthorInput struct {
	FirstName *string      `json:"firstName"`
	LastName  string       `json:"lastName"`
	Books     []*BookInput `json:"books"`
}

type Entity

type Entity interface {
	Entity() *aztables.EDMEntity
}

Jump to

Keyboard shortcuts

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