package
Version:
v0.0.0-...-5e38817
Opens a new window with list of versions in this module.
Published: Feb 8, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Author struct {
ID string `json:"id"`
FirstName *string `json:"firstName"`
LastName string `json:"lastName"`
Birthday *time.Time `json:"birthday"`
Books []*Book `json:"books"`
}
type AuthorInput struct {
ID string `json:"id"`
FirstName *string `json:"firstName"`
LastName string `json:"lastName"`
}
type Book struct {
Isbn string `json:"isbn"`
Title string `json:"title"`
Authors []*Author `json:"authors"`
Year *int `json:"year"`
}
type BookInput struct {
Isbn string `json:"isbn"`
Title string `json:"title"`
Authors []*AuthorInput `json:"authors"`
Year *int `json:"year"`
}
type CreateAuthorInput struct {
FirstName *string `json:"firstName"`
LastName string `json:"lastName"`
Books []*BookInput `json:"books"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.